Module: check_mk
Branch: master
Commit: a2a6ebdc72488a00724fd6e1462812dd96fd816c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2a6ebdc72488a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Aug 22 12:17:17 2013 +0200
Improved handling when displaying rules for folders
- Main directory: display all rules of all subfolders
- Any subfolder: display rules of this folder and all parents of this folder
---
web/htdocs/wato.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1b76035..d897fd0 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10510,8 +10510,7 @@ def mode_edit_ruleset(phase):
alias_path = get_folder_aliaspath(folder, show_main = False)
last_folder = folder
- folder_filter = html.var('folder')
- if folder_filter and folder['.name'] != folder_filter:
+ if g_folder != g_root_folder and not folder_is_parent_of(folder,
g_folder):
skip_this_folder = True
continue