From e352cb949027e6dc954cd2185311120de72d1dc1 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Sat, 12 Apr 2014 14:26:49 +1200
Subject: [PATCH] Fix regression picked up by screenshot tests

---
 core/Plugin/ViewDataTable.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php
index 1d890aa892..ea74fdaac3 100644
--- a/core/Plugin/ViewDataTable.php
+++ b/core/Plugin/ViewDataTable.php
@@ -190,7 +190,6 @@ abstract class ViewDataTable implements ViewInterface
         $this->config->self_url          = Request::getBaseReportUrl($controllerName, $controllerAction);
 
         $this->requestConfig->apiMethodToRequestDataTable = $apiMethodToRequestDataTable;
-        $this->assignRelatedReportsTitle();
 
         /**
          * Triggered during {@link ViewDataTable} construction. Subscribers should customize
@@ -216,6 +215,8 @@ abstract class ViewDataTable implements ViewInterface
          */
         Piwik::postEvent('ViewDataTable.configure', array($this));
 
+        $this->assignRelatedReportsTitle();
+
         $this->config->show_footer_icons = (false == $this->requestConfig->idSubtable);
 
         // the exclude low population threshold value is sometimes obtained by requesting data.
-- 
GitLab