Module: check_mk
Branch: master
Commit: e856ba6bda5eb3290fd60d9f5671f72408122fc5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e856ba6bda5eb3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 3 15:53:40 2016 +0100
Fixed showing incomp werks as unacknowledged after acknowledging
---
web/htdocs/werks.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/werks.py b/web/htdocs/werks.py
index 76c1e46..acaf140 100644
--- a/web/htdocs/werks.py
+++ b/web/htdocs/werks.py
@@ -100,6 +100,7 @@ def handle_acknowledgement():
acknowledge_werk(werk)
html.message(HTML(_("Werk %s - %s has been acknowledged.") %
(render_werk_id(werk, with_link=True), render_werk_title(werk))))
html.reload_sidebar()
+ load_werks() # reload ack states after modification
elif html.var("_ack_all"):
if (html.confirm(_("Do you really want to acknowledge <b>all</b>
incompatible werks?"), method="GET")):
@@ -107,6 +108,7 @@ def handle_acknowledgement():
acknowledge_all_werks()
html.message(_("%d incompatible Werks have been acknowledged.") %
num)
html.reload_sidebar()
+ load_werks() # reload ack states after modification
render_unacknowleged_werks()