Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-01-27 06:56:14 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-27 06:56:14 +0400
commit096c57f666ae2e1fd0b2e0fce0551a170ff70a87 (patch)
treeb267818366acc4d9b951668577c2fa02fdbdef05 /plugins/Goals/Controller.php
parentdd23b5e1881311a06c1b8ce69fb3aa079679a2e7 (diff)
Removing one hardcoded hack
Diffstat (limited to 'plugins/Goals/Controller.php')
-rw-r--r--plugins/Goals/Controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php
index e55ea756fb..a53e63a847 100644
--- a/plugins/Goals/Controller.php
+++ b/plugins/Goals/Controller.php
@@ -452,10 +452,10 @@ class Controller extends \Piwik\Plugin\Controller
foreach ($allReports as $category => $reports) {
$categoryText = Piwik::translate('Goals_ViewGoalsBy', $category);
foreach ($reports as $report) {
- $customParams['viewDataTable'] = 'tableGoals';
- if (in_array($report['action'], array('getVisitsUntilConversion', 'getDaysToConversion'))) {
- $customParams['viewDataTable'] = 'table';
+ if(empty($report['viewDataTable'])) {
+ $report['viewDataTable'] = 'tableGoals';
}
+ $customParams['viewDataTable'] = $report['viewDataTable'];
$goalReportsByDimension->addReport(
$categoryText, $report['name'], $report['module'] . '.' . $report['action'], $customParams);