Skip to content

Commit

Permalink
[BUGFIX] Prevent exception in company list if there are no pagevisits…
Browse files Browse the repository at this point in the history
… of companies

After this commit we search for a record with uid=0 as a workarround if there are no uids given
  • Loading branch information
einpraegsam committed Feb 21, 2024
1 parent 792bdb8 commit 420e669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/PagevisitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function findLatestPagevisitsWithCompanies(int $limit = 8): QueryResultIn

$query = $this->createQuery();
$logicalAnd = [
$query->in('uid', $identifiers),
$query->in('uid', $identifiers ?: [0]),
];
$query->matching(
$query->logicalAnd(...$logicalAnd)
Expand Down

0 comments on commit 420e669

Please sign in to comment.