Skip to content

Commit

Permalink
Fix filterQuery did not return objects
Browse files Browse the repository at this point in the history
  • Loading branch information
rixvet committed Aug 22, 2023
1 parent fe3e76d commit 5f2f9e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/inc/apiv2/common/AbstractBaseAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5f2f9e5

Please sign in to comment.