Skip to content

Commit

Permalink
[BUGFIX] Prevent sql exception im mysql with company list view
Browse files Browse the repository at this point in the history
Before this commit an exception was possible depending on the sql mode
  • Loading branch information
einpraegsam committed Oct 30, 2024
1 parent 9ebff32 commit dc1e286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/PagevisitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public function findLatestPagevisitsWithCompanies(FilterDto $filter): QueryResul
. $this->extendWhereClauseWithFilterRevenueClass($filter, 'c')
. $this->extendWhereClauseWithFilterBranchCode($filter)
. $this->extendWhereClauseWithFilterCategory($filter, 'c')
. ' group by c.uid'
. ' order by uid desc, pv.crdate desc'
. ' group by c.uid, pv.crdate'
. ' order by c.uid desc, pv.crdate desc'
. ' limit ' . $filter->getLimit();
$connection = DatabaseUtility::getConnectionForTable(Company::TABLE_NAME);
$identifiers = ArrayUtility::convertFetchedAllArrayToNumericArray(
Expand Down

0 comments on commit dc1e286

Please sign in to comment.