diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-03-18 07:54:42 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-03-18 07:54:42 +0300 |
commit | d9cbb612d7a6abff6b5ae7a18757f67d0a1029ce (patch) | |
tree | bf1dd93b0ccff5b0562749e27842c84a7376bd20 | |
parent | 9cc114308dd5310f48e71d7a2d5c8eab509d470d (diff) |
fix when flattening the processed metrics are not displayed
We always need to update the dataTable in our callbacks since the dataTable might get copied in GenericFilter and then the visualizations dataTable is outdated
-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 |