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@googlemail.com>2014-05-29 01:01:21 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-05-29 01:01:21 +0400
commitcd2ec823216af619dbd1a7ca72a52b86cfb38cbb (patch)
treec7efdd5561d5c02b599517a7f4d4bbeeb4a1084b /plugins/DBStats/DBStats.php
parent4c78ba86465ce0b9302d24b93c142a1b634593a8 (diff)
refs #5253 this might fix the database usage error. It definitely fixes nothing is displayed once you change a column in the graph charts since it does not support them. The summary configuration was never applied due to a typo.
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r--plugins/DBStats/DBStats.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php
index 619ebc1ef7..ac6ee1e355 100644
--- a/plugins/DBStats/DBStats.php
+++ b/plugins/DBStats/DBStats.php
@@ -95,7 +95,7 @@ class DBStats extends \Piwik\Plugin
public function configureViewDataTable(ViewDataTable $view)
{
switch ($view->requestConfig->apiMethodToRequestDataTable) {
- case 'DBStats.getDatabaseUsageSummar':
+ case 'DBStats.getDatabaseUsageSummary':
$this->configureViewForGetDatabaseUsageSummary($view);
break;
case 'DBStats.getTrackerDataSummary':
@@ -266,6 +266,10 @@ class DBStats extends \Piwik\Plugin
$view->config->highlight_summary_row = true;
}
+ if ($view->isViewDataTableId(Graph::ID)) {
+ $view->config->show_series_picker = false;
+ }
+
$view->config->addTranslations(array(
'label' => Piwik::translate('DBStats_Table'),
'year' => Piwik::translate('CoreHome_PeriodYear'),
@@ -334,6 +338,7 @@ class DBStats extends \Piwik\Plugin
$view->requestConfig->filter_sort_column = 'row_count';
$view->requestConfig->filter_sort_order = 'desc';
}
+ $view->config->selectable_rows = array();
}
$getPrettySize = array('\Piwik\MetricsFormatter', 'getPrettySizeFromBytes');