summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php')
-rw-r--r--library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php
index b89e729..31b6483 100644
--- a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php
+++ b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php
@@ -121,8 +121,12 @@ class ObjectSuggestions extends Suggestions
$quickFilter = Filter::any();
foreach ($model->getSearchColumns() as $column) {
- $where = Filter::like($resolver->qualifyColumn($column, $model->getTableName()), $searchTerm);
- $where->metaData()->set('columnLabel', $resolver->getColumnDefinition($where->getColumn())->getLabel());
+ if (strpos($column, '.') === false) {
+ $column = $resolver->qualifyColumn($column, $model->getTableName());
+ }
+
+ $where = Filter::like($column, $searchTerm);
+ $where->metaData()->set('columnLabel', $resolver->getColumnDefinition($column)->getLabel());
$quickFilter->add($where);
}