Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Fixed getting duplicates in list view (#17149)
Browse files Browse the repository at this point in the history
* Fixed getting duplicates in list view

---------

Co-authored-by: rskrzypczak <[email protected]>
  • Loading branch information
konadrian and rskrzypczak authored Aug 11, 2023
1 parent 3912ea9 commit 1e85136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/QueryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,8 @@ public function loadJoin()
}
if ($this->searchFieldsForDuplicates) {
$duplicateCheckClause = [];
$queryGenerator = new self($this->moduleName, $this->user->getId());
$queryGenerator = new self($this->moduleName, $this->user->getId());
$queryGenerator->setStateCondition($this->getState());
$queryGenerator->permissions = $this->permissions;
$queryGenerator->setFields(array_keys($this->searchFieldsForDuplicates));
foreach ($this->searchFieldsForDuplicates as $fieldName => $ignoreEmptyValue) {
Expand Down

0 comments on commit 1e85136

Please sign in to comment.