Skip to content

Commit 2efe4cf

Browse files
authored
Fixed bug when no filters have been provided to count endpoint (#1165)
1 parent 880d58f commit 2efe4cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/inc/apiv2/common/AbstractModelAPI.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ public function count(Request $request, Response $response, array $args): Respon
623623
$expands = $this->makeExpandables($request, $validExpandables);
624624

625625
$objects = [$factory->getNullObject()];
626+
$aFs = [];
626627
//build join filters
627628
foreach ($expands as $expand) {
628629
$relation = $this->getToManyRelationships()[$expand];

0 commit comments

Comments
 (0)