diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 42561aeee..1b04bc71e 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -540,11 +540,17 @@ class FilterEditor extends AbstractWidget ); } + public function setColumns(array $columns) + { + $this->cachedColumnSelect = $this->arrayForSelect($columns); + return $this; + } + protected function selectColumn(Filter $filter = null) { $active = $filter === null ? null : $filter->getColumn(); - if ($this->query === null) { + if ($this->cachedColumnSelect === null && $this->query === null) { return sprintf( '', $this->elementId('column', $filter),