From ca4789f1141ed9414bfaec220c5191f02c57e6cf Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 13 Aug 2015 17:20:40 +0200 Subject: [PATCH] FilterEditor: Fix automatic filter label creation refs #9029 --- library/Icinga/Web/Widget/FilterEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index a1a2e3439..9c3fb801e 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -512,7 +512,7 @@ class FilterEditor extends AbstractWidget $res = array(); foreach ($array as $k => $v) { if (is_int($k)) { - $res[str_replace('_', ' ', ucfirst($v))] = $v; + $res[$v] = str_replace('_', ' ', ucfirst($v)); } elseif ($flip) { $res[$v] = $k; } else {