diff --git a/src/Controller/ModulesController.php b/src/Controller/ModulesController.php index a1bcac366..c9ca05cfe 100644 --- a/src/Controller/ModulesController.php +++ b/src/Controller/ModulesController.php @@ -100,7 +100,7 @@ public function index(): ?Response } try { - $response = $this->apiClient->get('/objects?filter[type][]=' . $this->objectType, $this->Query->index()); + $response = $this->apiClient->getObjects($this->objectType, $this->Query->index()); } catch (BEditaClientException $e) { $this->log($e->getMessage(), LogLevel::ERROR); $this->Flash->error($e->getMessage(), ['params' => $e]);