diff --git a/src/inc/apiv2/common/AbstractBaseAPI.class.php b/src/inc/apiv2/common/AbstractBaseAPI.class.php index 99a9121c5..4d7b40715 100644 --- a/src/inc/apiv2/common/AbstractBaseAPI.class.php +++ b/src/inc/apiv2/common/AbstractBaseAPI.class.php @@ -331,8 +331,7 @@ protected function joinQuery(mixed $objFactory, DBA\QueryFilter $qF, DBA\JoinFil */ protected function filterQuery(mixed $objFactory, DBA\QueryFilter $qF): array { - $joined = $objFactory->filter([Factory::FILTER => $qF]); - $objects = $joined[$objFactory->getModelName()]; + $objects = $objFactory->filter([Factory::FILTER => $qF]); $ret = []; foreach ($objects as $object) {