Skip to content

Commit

Permalink
Fixes #3755, fixed bug in limit selector that resulted in wrong order…
Browse files Browse the repository at this point in the history
… of graph serieses (due to wrong order of metrics) when used in row evolution popup.
  • Loading branch information
diosmosis committed Feb 26, 2013
1 parent 5a0f61d commit d6f8554
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/CoreHome/Controller.php
Expand Up @@ -162,6 +162,7 @@ public function getRowEvolutionGraph($fetch = false)
$isMultiRowEvolution = Piwik_Common::getRequestVar($paramName, false, 'int');

$rowEvolution = $this->makeRowEvolution($isMultiRowEvolution, $graphType = 'graphEvolution');
$rowEvolution->useAvailableMetrics();
self::$rowEvolutionCache = $rowEvolution;
}

Expand Down
5 changes: 5 additions & 0 deletions plugins/CoreHome/DataTableRowAction/RowEvolution.php
Expand Up @@ -290,4 +290,9 @@ protected function getSparkline($metric, $controller)
return '<img src="data:image/png;base64,'.$spark.'" />';
}

/** Use the available metrics for the metrics of the last requested graph. */
public function useAvailableMetrics()
{
$this->graphMetrics = $this->availableMetrics;
}
}

0 comments on commit d6f8554

Please sign in to comment.