Skip to content

Commit

Permalink
ObjectSuggestions: Don't apply base filter to $customVars query
Browse files Browse the repository at this point in the history
 - The basefilter may contain relations, that are not know to `CustomvarFlat`, which can leads to errors.
    For example: RedundancygroupController:completeActions's base filter it not known to `CustomvarFlat`.
  • Loading branch information
sukhwinder33445 committed Jan 10, 2025
1 parent b7e8c20 commit 5803461
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ protected function queryCustomvarConfig(string $searchTerm): Select
}

$customVars->columns('flatname');
$this->applyBaseFilter($customVars);
$this->applyRestrictions($customVars);
$customVars->filter(Filter::like('flatname', $searchTerm));
$idColumn = $resolver->qualifyColumn('id', $resolver->getAlias($customVars->getModel()));
$customVars = $customVars->assembleSelect();
Expand Down

0 comments on commit 5803461

Please sign in to comment.