diff options
Diffstat (limited to 'core/Plugin/ViewDataTable.php')
-rw-r--r-- | core/Plugin/ViewDataTable.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php index 3b7bcf4ff8..da3e43363b 100644 --- a/core/Plugin/ViewDataTable.php +++ b/core/Plugin/ViewDataTable.php @@ -178,7 +178,12 @@ abstract class ViewDataTable implements ViewInterface */ public function __construct($controllerAction, $apiMethodToRequestDataTable, $overrideParams = array()) { - list($controllerName, $controllerAction) = explode('.', $controllerAction); + if (strpos($controllerAction, '.') === false) { + $controllerName = ''; + $controllerAction = ''; + } else { + list($controllerName, $controllerAction) = explode('.', $controllerAction); + } $this->requestConfig = static::getDefaultRequestConfig(); $this->config = static::getDefaultConfig(); @@ -223,6 +228,8 @@ abstract class ViewDataTable implements ViewInterface $this->config->addTranslations($processedMetrics); } + $this->config->title = $report->getName(); + $report->configureView($this); } |