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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-09-10 09:23:52 +0300
committerGitHub <noreply@github.com>2018-09-10 09:23:52 +0300
commitf72637f3c10ee8e2fc5535c28dbf755dcd2a0457 (patch)
tree152e5fd987dc3ef3550386e22badc5000443c302 /plugins/CoreVisualizations
parentfb0d1563813aa7358b2e35e1b482f92c47c9b80a (diff)
Get goals through Request::processRequest instead of directly from AP… (#13293)
* Get goals through Request::processRequest instead of directly from API so events can fire. * Do not use Request in tracker requests since renderers are not loaded. * Add default = [] & filter_limit = -1 to changed Goals.getGoals calls. * Add empty default request to one Goals.get call. * fix another test * Use 3.x-dev file.
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r--plugins/CoreVisualizations/Widgets/SingleMetricView.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/Widgets/SingleMetricView.php b/plugins/CoreVisualizations/Widgets/SingleMetricView.php
index b9ea39840e..4cc2f5eb7e 100644
--- a/plugins/CoreVisualizations/Widgets/SingleMetricView.php
+++ b/plugins/CoreVisualizations/Widgets/SingleMetricView.php
@@ -64,7 +64,7 @@ class SingleMetricView extends \Piwik\Widget\Widget
);
$metricDocumentations = array_merge($metricDocumentations, $reportMetadata['metricsDocumentation']);
- $goals = GoalsAPI::getInstance()->getGoals($idSite);
+ $goals = Request::processRequest('Goals.getGoals', ['idSite' => $idSite, 'filter_limit' => '-1'], $default = []);
}
$view = new View("@CoreHome/_angularComponent.twig");