diff --git a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php index ad35c745..db2c84d8 100644 --- a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php +++ b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php @@ -321,8 +321,8 @@ class ObjectSuggestions extends Suggestions self::collectRelations($resolver, $model, $models, []); } + /** @var Model $targetModel */ foreach ($models as $path => $targetModel) { - /** @var Model $targetModel */ foreach ($resolver->getColumnDefinitions($targetModel) as $columnName => $definition) { yield $path . '.' . $columnName => $definition->getLabel(); }