diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-03-29 11:09:18 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-03-29 11:09:18 +0300 |
commit | 5d46f802f0485c504c3923aa625032ca998048cf (patch) | |
tree | 6f36e18d37c80dc00bfd2480ee1607b1df9b1fe5 /plugins/UserId | |
parent | f9c555e5c1ac3bfc49559386f3a7c9d12703a762 (diff) |
Make it possible to disable flattening for an report (#11529)
* use report property to enable/disable flattener
* update tests
* Update changelog [ci skip]
* minor renamings
Diffstat (limited to 'plugins/UserId')
-rw-r--r-- | plugins/UserId/Reports/GetUsers.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/UserId/Reports/GetUsers.php b/plugins/UserId/Reports/GetUsers.php index 776c29e02f..7fba70f472 100644 --- a/plugins/UserId/Reports/GetUsers.php +++ b/plugins/UserId/Reports/GetUsers.php @@ -25,11 +25,12 @@ class GetUsers extends Base { parent::init(); - $this->name = Piwik::translate('UserId_UserReportTitle'); - $this->subcategoryId = 'UserId_UserReportTitle'; - $this->documentation = ''; - $this->dimension = new UserId(); - $this->metrics = array('label', 'nb_visits', 'nb_actions', 'nb_visits_converted'); + $this->name = Piwik::translate('UserId_UserReportTitle'); + $this->subcategoryId = 'UserId_UserReportTitle'; + $this->documentation = ''; + $this->dimension = new UserId(); + $this->metrics = array('label', 'nb_visits', 'nb_actions', 'nb_visits_converted'); + $this->supportsFlatten = false; // This defines in which order your report appears in the mobile app, in the menu and in the list of widgets $this->order = 9; @@ -60,7 +61,6 @@ class GetUsers extends Base $view->config->show_related_reports = false; $view->config->show_insights = false; $view->config->show_pivot_by_subtable = false; - $view->config->show_flatten_table = false; if ($view->isViewDataTableId(HtmlTable::ID)) { $view->config->disable_row_evolution = false; |