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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-21 03:36:28 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-21 03:36:28 +0400
commited569f20bbf74dd40ec33f9204bbbfd33358eba4 (patch)
tree6adda4b23b8066dd3a34b6ac72f77c73fb6cb339 /core/ViewDataTable.php
parent035204ae3a270027bc8f1b6bf99b3ee93ce7cd65 (diff)
Refs #4041, #4077, make sure treemap subtable loading determines row limit dynamically, and allow visualizations to apply viewdatatable queued filters on their own time.
Diffstat (limited to 'core/ViewDataTable.php')
-rw-r--r--core/ViewDataTable.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/ViewDataTable.php b/core/ViewDataTable.php
index f047905dc0..0d80148aae 100644
--- a/core/ViewDataTable.php
+++ b/core/ViewDataTable.php
@@ -610,14 +610,15 @@ class ViewDataTable
$genericFilter->filter($this->dataTable);
}
+ // queue other filters so they can be applied later if queued filters are disabled
+ foreach ($otherFilters as $filter) {
+ $this->dataTable->queueFilter($filter[0], $filter[1]);
+ }
+
// Finally, apply datatable filters that were queued (should be 'presentation' filters that
// do not affect the number of rows)
if (!$this->areQueuedFiltersDisabled()) {
$this->dataTable->applyQueuedFilters();
-
- foreach ($otherFilters as $filter) {
- $this->dataTable->filter($filter[0], $filter[1]);
- }
}
return true;