Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2018-11-05 02:25:10 +0300
committerGitHub <noreply@github.com>2018-11-05 02:25:10 +0300
commitab68610d8909995af3f4df5d15135f2761c62894 (patch)
tree55dd59234f02c06a2e6bc70f42f7fda0750a505d /plugins/DevicesDetection
parente58934998b0276b50c14e1ef4f72e62ef4ef75ed (diff)
Only show default number of rows for devices report (#13541)
fix https://github.com/matomo-org/matomo/issues/12266 fyi @mattab couldn't make it work to show `0` instead of `-`. Now all the reports have the same length by default on the devices page. If someone wants to see more, they can increase the limit. Or if many are `-` then they can choose only `5` in the limit selection and it will apply this setting next time.
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r--plugins/DevicesDetection/Reports/GetType.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/DevicesDetection/Reports/GetType.php b/plugins/DevicesDetection/Reports/GetType.php
index 71abbd871c..7c77cff8e5 100644
--- a/plugins/DevicesDetection/Reports/GetType.php
+++ b/plugins/DevicesDetection/Reports/GetType.php
@@ -8,10 +8,10 @@
*/
namespace Piwik\Plugins\DevicesDetection\Reports;
+use Piwik\Common;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\DevicesDetection\Columns\DeviceType;
-use DeviceDetector\Parser\Device\DeviceParserAbstract as DeviceParser;
class GetType extends Base
{
@@ -28,8 +28,6 @@ class GetType extends Base
public function configureView(ViewDataTable $view)
{
- $unknownTypeCount = 1;
- $view->requestConfig->filter_limit = $unknownTypeCount + count(DeviceParser::getAvailableDeviceTypeNames());
$view->config->show_search = false;
$view->config->show_exclude_low_population = false;
$view->config->addTranslation('label', Piwik::translate("DevicesDetection_dataTableLabelTypes"));