diff options
author | benakamoorthi <benaka.moorthi@gmail.com> | 2012-09-10 19:42:12 +0400 |
---|---|---|
committer | benakamoorthi <benaka.moorthi@gmail.com> | 2012-09-10 19:42:12 +0400 |
commit | 5a51383f536034218658e2d4c31d18d78e82c3a0 (patch) | |
tree | f71af1d3aad8f4d1c3869909738608553fa49875 /plugins/CustomVariables | |
parent | db19cf6ef8598a09e9949b8d8533e09cf12e7653 (diff) |
Refs #3330, #766 add integration test for blob limiting behavior present in certain plugins. Also, fix three bugs:
* CustomVariables plugin does not sort by visit before applying truncation to reports.
* ReplaceSummaryLabel should be recursive so subtables w/ limited rows show 'Others' as label.
* Pass user agent & language explicitly when doing bulk tracking in PiwikTracker.
git-svn-id: http://dev.piwik.org/svn/trunk@6966 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r-- | plugins/CustomVariables/CustomVariables.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/CustomVariables/CustomVariables.php b/plugins/CustomVariables/CustomVariables.php index 4d83a0f27e..5ef7156d9b 100644 --- a/plugins/CustomVariables/CustomVariables.php +++ b/plugins/CustomVariables/CustomVariables.php @@ -316,7 +316,9 @@ class Piwik_CustomVariables extends Piwik_Plugin $recordName = 'CustomVariables_valueByName'; $table = $archiveProcessing->getDataTableWithSubtablesFromArraysIndexedByLabel($this->interestByCustomVariablesAndValue, $this->interestByCustomVariables); - $blob = $table->getSerialized($this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable); + $blob = $table->getSerialized( + $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable, + $columnToSort = Piwik_Archive::INDEX_NB_VISITS); $archiveProcessing->insertBlobRecord($recordName, $blob); destroy($table); } @@ -332,6 +334,8 @@ class Piwik_CustomVariables extends Piwik_Plugin if(!$archiveProcessing->shouldProcessReportsForPlugin($this->getPluginName())) return; $dataTableToSum = 'CustomVariables_valueByName'; - $nameToCount = $archiveProcessing->archiveDataTable($dataTableToSum, null, $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable); + $nameToCount = $archiveProcessing->archiveDataTable( + $dataTableToSum, null, $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable, + $columnToSort = Piwik_Archive::INDEX_NB_VISITS); } } |