Skip to content

Commit

Permalink
Merge pull request matomo-org#7471 from piwik/processed_metrics_when_…
Browse files Browse the repository at this point in the history
…flatten

Fix when flattening the processed metrics are not displayed
  • Loading branch information
Matthieu Aubry committed Mar 18, 2015
2 parents 5114b83 + d9cbb61 commit 558877d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Plugin/Visualization.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ private function applyFilters()

$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]);
Expand All @@ -417,6 +419,8 @@ private function applyFilters()

$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
Expand Down

0 comments on commit 558877d

Please sign in to comment.