diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-03-18 08:20:43 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-03-18 08:20:43 +0300 |
commit | 558877dc93ab4ca99528e1fc8cab7ed7c8b6257a (patch) | |
tree | 2130ec70b3df5c675358f6ac3a5bcc965e16a159 | |
parent | 5114b8329172d8d19f2e16eeb19a8ed3b72a5676 (diff) | |
parent | d9cbb612d7a6abff6b5ae7a18757f67d0a1029ce (diff) |
Merge pull request #7471 from piwik/processed_metrics_when_flatten2.12.0-b8
Fix when flattening the processed metrics are not displayed
-rw-r--r-- | core/Plugin/Visualization.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php index 3d48c24d15..6e6b4802a0 100644 --- a/core/Plugin/Visualization.php +++ b/core/Plugin/Visualization.php @@ -399,6 +399,8 @@ class Visualization extends ViewDataTable $postProcessor->setCallbackBeforeGenericFilters(function (DataTable\DataTableInterface $dataTable) use ($self, $postProcessor) { + $self->setDataTable($dataTable); + // First, filters that delete rows foreach ($self->config->getPriorityFilters() as $filter) { $dataTable->filter($filter[0], $filter[1]); @@ -417,6 +419,8 @@ class Visualization extends ViewDataTable $postProcessor->setCallbackAfterGenericFilters(function (DataTable\DataTableInterface $dataTable) use ($self) { + $self->setDataTable($dataTable); + $self->afterGenericFiltersAreAppliedToLoadedDataTable(); // queue other filters so they can be applied later if queued filters are disabled |