Skip to content

Commit 793aa24

Browse files
sukhwinder33445nilmerg
authored andcommitted
ObjectSuggestions: Don't apply base filter to $customVars query
The basefilter may contain relations, that are not know to `CustomvarFlat`, which can leads to errors. For example: RedundancygroupController:completeActions's base filter is not known to `CustomvarFlat`.
1 parent 9eea87d commit 793aa24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ protected function queryCustomvarConfig(string $searchTerm): Select
301301
}
302302

303303
$customVars->columns('flatname');
304-
$this->applyBaseFilter($customVars);
304+
$this->applyRestrictions($customVars);
305305
$customVars->filter(Filter::like('flatname', $searchTerm));
306306
$idColumn = $resolver->qualifyColumn('id', $resolver->getAlias($customVars->getModel()));
307307
$customVars = $customVars->assembleSelect();

0 commit comments

Comments
 (0)