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:
authorStefan Giehl <stefan@matomo.org>2020-10-07 09:41:49 +0300
committerGitHub <noreply@github.com>2020-10-07 09:41:49 +0300
commit969668755f9799d3dfa2dbbf5db75c0e882195db (patch)
tree4891f53fe31ff220b3bb4324b4ce69a99c42aae3 /plugins/Events
parente0019128ed33d321185a5ea283090f7541c2b83d (diff)
Fix selectable metrics in pie charts for Events and Contents reports (#16535)
Diffstat (limited to 'plugins/Events')
-rw-r--r--plugins/Events/Reports/Base.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Events/Reports/Base.php b/plugins/Events/Reports/Base.php
index 9d6b0ff123..2241620543 100644
--- a/plugins/Events/Reports/Base.php
+++ b/plugins/Events/Reports/Base.php
@@ -52,6 +52,10 @@ abstract class Base extends \Piwik\Plugin\Report
$view->requestConfig->overridableProperties = array_values($view->requestConfig->overridableProperties);
}
+ if (property_exists($view->config, 'selectable_columns')) {
+ $view->config->selectable_columns = ['nb_events', 'nb_visits', 'sum_event_value', 'nb_events_with_value'];
+ }
+
$this->configureFooterMessage($view);
}