Module: check_mk
Branch: master
Commit: 7c718443afcb92640fdfc820000e696e53f328df
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c718443afcb92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 29 18:04:21 2011 +0200
WATO: avoid duplicate WATO filter
---
web/plugins/views/wato.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/plugins/views/wato.py b/web/plugins/views/wato.py
index 63efdcf..8b69d31 100644
--- a/web/plugins/views/wato.py
+++ b/web/plugins/views/wato.py
@@ -93,4 +93,5 @@ class FilterWatoFile(Filter):
return self.path_to_tree.get(current)
declare_filter(10, FilterWatoFile())
-ubiquitary_filters.append("wato_folder") # show in all views
+if "wato_folder" not in ubiquitary_filters:
+ ubiquitary_filters.append("wato_folder") # show in all views