Module: check_mk
Branch: master
Commit: c741f82b41e7fb35ad56c684dd517907b010da0d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c741f82b41e7fb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 31 09:14:14 2017 +0200
5168 FIX Fixed highlighting of rules when searching for ineffective rules
Change-Id: I9537c99e7d0d026f111676a7ef2b5c5ab2139e9b
---
.werks/5168 | 10 ++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/5168 b/.werks/5168
new file mode 100644
index 0000000..5dd16ba
--- /dev/null
+++ b/.werks/5168
@@ -0,0 +1,10 @@
+Title: Fixed highlighting of rules when searching for ineffective rules
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1504163636
+Class: fix
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 6e0f953..233d907 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12926,7 +12926,7 @@ class ModeEditRuleset(WatoMode):
if ruleset.has_rule_search_options(search_options) \
and rule.matches_search(search_options) \
- and ("fulltext" in search_options and not
ruleset.matches_fulltext_search(search_options)):
+ and ("fulltext" not in search_options or not
ruleset.matches_fulltext_search(search_options)):
css.append("matches_search")
table.row(css=" ".join(css) if css else None)