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 'core/API/DataTableManipulator.php')
-rw-r--r--core/API/DataTableManipulator.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/API/DataTableManipulator.php b/core/API/DataTableManipulator.php
index 76c52f4958..d084d6d156 100644
--- a/core/API/DataTableManipulator.php
+++ b/core/API/DataTableManipulator.php
@@ -152,7 +152,15 @@ abstract class DataTableManipulator
$idSite = 'all';
}
- $meta = API::getInstance()->getMetadata($idSite, $this->apiModule, $this->apiMethod);
+ $apiParameters = array();
+ if (!empty($request['idDimension'])) {
+ $apiParameters['idDimension'] = $request['idDimension'];
+ }
+ if (!empty($request['idGoal'])) {
+ $apiParameters['idGoal'] = $request['idGoal'];
+ }
+
+ $meta = API::getInstance()->getMetadata($idSite, $this->apiModule, $this->apiMethod, $apiParameters);
if (empty($meta)) {
throw new Exception(sprintf(