diff options
Diffstat (limited to 'plugins/Goals/Controller.php')
-rw-r--r-- | plugins/Goals/Controller.php | 5 |
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(); }); } |