diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-16 10:00:06 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-16 10:00:32 +0400 |
commit | 336cd45fd1c3c1df8aaf9f4980e24a563f0823c0 (patch) | |
tree | d36c100fd880af95014740312a7d48810fe2e2f4 /core/Plugin/ViewDataTable.php | |
parent | fccdcc0c2c9416a283d35feb89fa689f9a32fcae (diff) |
moved some more dimensions to plugins, fixed some issues, removed some more duplicated code etc. Tests will not be green as there fixes to country detection
Diffstat (limited to 'core/Plugin/ViewDataTable.php')
-rw-r--r-- | core/Plugin/ViewDataTable.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php index 56304762c4..b72dd1aad3 100644 --- a/core/Plugin/ViewDataTable.php +++ b/core/Plugin/ViewDataTable.php @@ -194,6 +194,22 @@ abstract class ViewDataTable implements ViewInterface $report = Report::factory($this->requestConfig->getApiModuleToRequest(), $this->requestConfig->getApiMethodToRequest()); if (!empty($report)) { + $this->config->subtable_controller_action = 'renderWidget'; + $relatedReports = $report->getRelatedReports(); + if (!empty($relatedReports)) { + foreach ($relatedReports as $relatedReport) { + $params = array('reportModule' => $relatedReport->getModule(), 'reportAction' => $relatedReport->getAction()); + $this->config->addRelatedReport('CoreHome.renderWidget', + $relatedReport->getName(), + $params); + } + } + + $metrics = $report->getMetrics(); + if (!empty($metrics)) { + $this->config->addTranslations($metrics); + } + $report->configureView($this); } |