From 246bcc49843a93a02055812bf3ad65499a6169db Mon Sep 17 00:00:00 2001 From: Thomas Steur <tsteur@users.noreply.github.com> Date: Tue, 15 Oct 2013 13:42:07 +1300 Subject: [PATCH] looks like this fixes treemap footer icon is displayed in evolution row --- core/ViewDataTable.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/core/ViewDataTable.php b/core/ViewDataTable.php index b509b085a9..d5522600b0 100644 --- a/core/ViewDataTable.php +++ b/core/ViewDataTable.php @@ -1069,20 +1069,21 @@ class ViewDataTable /** @var Visualization $visualization */ $visualization = new $this->visualizationClass($this); - /** - * This event is called before a visualization is created. Plugins can use this event to - * override view properties for individual reports or visualizations. - * - * Themes can use this event to make sure reports look nice with their themes. Plugins - * that provide new visualizations can use this event to make sure certain reports - * are configured differently when viewed with the new visualization. - */ - Piwik::postEvent(self::CONFIGURE_VIEW_EVENT, array($viewDataTable = $this)); - $this->overrideViewProperties(); - try { $visualization->configureVisualization($this->vizConfig); + + /** + * This event is called after a visualization has been configured. Plugins can use this event to + * override view properties for individual reports or visualizations. + * + * Themes can use this event to make sure reports look nice with their themes. Plugins + * that provide new visualizations can use this event to make sure certain reports + * are configured differently when viewed with the new visualization. + */ + Piwik::postEvent(self::CONFIGURE_VIEW_EVENT, array($viewDataTable = $this)); + + $this->overrideViewProperties(); $visualization->beforeLoadDataTable($this->vizRequest, $this->vizConfig); $this->loadDataTableFromAPI(); @@ -1346,4 +1347,4 @@ class ViewDataTable } return $propertyNames; } -} \ No newline at end of file +} -- GitLab