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 <thomas.steur@gmail.com>2013-10-18 06:29:41 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-18 06:29:41 +0400
commit1e57892c37e676679c0252b3debd727c47b64ba8 (patch)
tree1aeb6d14f3907143e68baa07fc63115158fcd54e /plugins/Actions/Actions.php
parent65a767efffc6c1c9205c6075f4f5176f7a12e1ca (diff)
make sure treemap and other custom visualizations are displayed in case any action module is requested
Diffstat (limited to 'plugins/Actions/Actions.php')
-rw-r--r--plugins/Actions/Actions.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php
index 6315a39d6e..84bae607b7 100644
--- a/plugins/Actions/Actions.php
+++ b/plugins/Actions/Actions.php
@@ -688,6 +688,16 @@ class Actions extends \Piwik\Plugin
$this->configureViewForGetOutlinks($view);
break;
}
+
+ if ($this->pluginName == $view->requestConfig->getApiModuleToRequest()) {
+ if ($view->isRequestingSingleDataTable()) {
+ // make sure custom visualizations are shown on actions reports
+ $view->config->show_all_views_icons = true;
+ $view->config->show_bar_chart = false;
+ $view->config->show_pie_chart = false;
+ $view->config->show_tag_cloud = false;
+ }
+ }
}
private function addBaseDisplayProperties(ViewDataTable $view)
@@ -696,16 +706,7 @@ class Actions extends \Piwik\Plugin
$view->config->search_recursive = true;
$view->config->show_table_all_columns = false;
$view->requestConfig->filter_limit = self::ACTIONS_REPORT_ROWS_DISPLAY;
-
- if ($view->isRequestingSingleDataTable()) {
- // make sure Treemap is shown on actions reports
- $view->config->show_all_views_icons = true;
- $view->config->show_bar_chart = false;
- $view->config->show_pie_chart = false;
- $view->config->show_tag_cloud = false;
- } else {
- $view->config->show_all_views_icons = false;
- }
+ $view->config->show_all_views_icons = false;
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->show_embedded_subtable = true;