From 69c8ed471b60442557607c650f3f4e8dc82dcef5 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 7 Dec 2016 18:26:45 +0100 Subject: [PATCH] FilterEditor: add possibility to fold and unfold filter by click refs #12634 Signed-off-by: Alexander A. Klimov --- library/Icinga/Web/Widget/FilterEditor.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 28e49688b..679fddc90 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -749,9 +749,12 @@ class FilterEditor extends AbstractWidget $title .= ': ' . $this->view()->escape($this->filter); } } + + $addOrPurgeModifyFilter = !($this->preservedUrl()->getParam('modifyFilter')); + return $html . '