Module: check_mk
Branch: master
Commit: c95446bbc5301feb7093096e6f712d03edb11ae3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c95446bbc5301f…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 24 10:01:30 2017 +0100
preliminary workaround for 'Create specific rule for ..' exception
Change-Id: I329185e486f92bcd879bd75a938362f615867d36
---
web/htdocs/wato.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c6744a9..29d5b3c 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12502,7 +12502,8 @@ class ModeEditRuleset(WatoMode):
html.open_td()
html.button("_new_host_rule", _("Create %s specific rule for:
") % ty)
html.hidden_field("host", self._hostname)
- html.hidden_field("item", mk_repr(self._item))
+ if self._item:
+ html.hidden_field("item", mk_repr(self._item))
html.close_td()
html.open_td(style="vertical-align:middle")
html.write_text(label)