diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-03-28 13:46:46 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-03-28 13:46:46 +0300 |
commit | b92817020f4c9b062febf2962e765fa5d44534ba (patch) | |
tree | 47dd1342b218e2cf7f45d72e85c2de42043c96de /plugins/Insights | |
parent | a6e9fe179fec79611982719b3c7f4b3a779221b1 (diff) |
disable pivotBy for insights visualization (#11539)
Diffstat (limited to 'plugins/Insights')
-rw-r--r-- | plugins/Insights/Visualizations/Insight.php | 4 | ||||
-rw-r--r-- | plugins/Insights/Visualizations/Insight/RequestConfig.php | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Insights/Visualizations/Insight.php b/plugins/Insights/Visualizations/Insight.php index 349f269e51..a6ec4a9865 100644 --- a/plugins/Insights/Visualizations/Insight.php +++ b/plugins/Insights/Visualizations/Insight.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\Insights\Visualizations; use Piwik\Common; -use Piwik\DataTable; use Piwik\Plugin\ViewDataTable; use Piwik\Plugin\Visualization; use Piwik\Plugins\Insights\API; @@ -53,6 +52,8 @@ class Insight extends Visualization 'comparedToXPeriods' => $this->requestConfig->compared_to_x_periods_ago, 'orderBy' => $this->requestConfig->order_by, 'filterBy' => $this->requestConfig->filter_by, + 'pivotBy' => false, + 'pivotByColumn' => false, 'limitIncreaser' => $this->getLimitIncrease(), 'limitDecreaser' => $this->getLimitDecrease(), ); @@ -94,6 +95,7 @@ class Insight extends Visualization { $this->config->datatable_js_type = 'InsightsDataTable'; $this->config->show_limit_control = true; + $this->config->show_pivot_by_subtable = false; $this->config->show_pagination_control = false; $this->config->show_offset_information = false; $this->config->show_search = false; diff --git a/plugins/Insights/Visualizations/Insight/RequestConfig.php b/plugins/Insights/Visualizations/Insight/RequestConfig.php index 585d3092cb..5e390218e5 100644 --- a/plugins/Insights/Visualizations/Insight/RequestConfig.php +++ b/plugins/Insights/Visualizations/Insight/RequestConfig.php @@ -26,6 +26,8 @@ class RequestConfig extends VisualizationRequestConfig public function __construct() { $this->disable_generic_filters = true; + $this->pivotBy = false; + $this->pivotByColumn = false; $properties = array( 'min_growth_percent', |