Module: check_mk
Branch: master
Commit: 4ba7915b40e3419b735b3dacc2b26ec80bda21ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ba7915b40e341…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 12 17:34:45 2013 +0200
FIX: Folder Tree Snapin: make folder filter also work for remote folders
---
ChangeLog | 2 ++
web/plugins/views/wato.py | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index daa3f94..5873af8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -357,6 +357,8 @@
* FIX: Fixed wrong default settings of view filters in localized multisite
* FIX: Fixed exception when enabling sounds for views relying on
e.g. alert statistics source
+ * FIX: Folder Tree Snapin: make folder filter also work for remote
+ folders that do not exist locally
WATO:
* FIX: fix layout of Auxiliary tags table
diff --git a/web/plugins/views/wato.py b/web/plugins/views/wato.py
index f53b5a3..abca215 100644
--- a/web/plugins/views/wato.py
+++ b/web/plugins/views/wato.py
@@ -52,7 +52,7 @@ class FilterWatoFile(Filter):
def filter(self, infoname):
self.check_wato_data_update()
current = html.var(self.name)
- if current and current in self.path_to_tree:
+ if current:
return "Filter: host_filename ~ ^/wato/%s/\n" %
current.replace("\n", "") # prevent insertions attack
else:
return ""