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 /core/DataTable/Filter/ReplaceSummaryRowLabel.php | |
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 'core/DataTable/Filter/ReplaceSummaryRowLabel.php')
-rw-r--r-- | core/DataTable/Filter/ReplaceSummaryRowLabel.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/DataTable/Filter/ReplaceSummaryRowLabel.php b/core/DataTable/Filter/ReplaceSummaryRowLabel.php index 740062f9d5..a52d23da70 100644 --- a/core/DataTable/Filter/ReplaceSummaryRowLabel.php +++ b/core/DataTable/Filter/ReplaceSummaryRowLabel.php @@ -47,5 +47,15 @@ class Piwik_DataTable_Filter_ReplaceSummaryRowLabel extends Piwik_DataTable_Filt break; } } + + // recurse + foreach ($rows as $row) + { + if ($row->isSubtableLoaded()) + { + $subTable = Piwik_DataTable_Manager::getInstance()->getTable($row->getIdSubDataTable()); + $this->filter($subTable); + } + } } } |