diff options
Diffstat (limited to 'core/API/DataTableManipulator.php')
-rw-r--r-- | core/API/DataTableManipulator.php | 10 |
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( |