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:
Diffstat (limited to 'plugins/Goals/Controller.php')
-rw-r--r--plugins/Goals/Controller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php
index 247a579cd2..045d177e4d 100644
--- a/plugins/Goals/Controller.php
+++ b/plugins/Goals/Controller.php
@@ -266,10 +266,13 @@ class Controller extends \Piwik\Plugin\Controller
'only_summary' => 1,
];
- \Piwik\Context::executeWithQueryParameters($params, function() use (&$content) {
+ \Piwik\Context::executeWithQueryParameters($params, function () use (&$content, $goal) {
//load Visualisations Sparkline
$view = ViewDataTableFactory::build(Sparklines::ID, 'Goals.getMetrics', 'Goals.' . __METHOD__, true);
$view->config->show_title = true;
+ $view->config->custom_parameters = [
+ 'idGoal' => $goal['idgoal'],
+ ];
$content .= $view->render();
});
}