Module: check_mk
Branch: master
Commit: 4128badc3a3b72b24b02120fac17ad1c7773ee6c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4128badc3a3b72…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Mon Nov 5 10:52:46 2018 +0100
Work around for delete failed notifications bug
The delete failed notifications link sits on the sidebar and has no access
to the content in the main frame, thus can't know about the previous
page. As such it fail looking for it. An empty string bypasses the issue.
Change-Id: Iee280b33379b88a2abe9bc941e23f88de9da98e1
---
cmk/gui/notifications.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/notifications.py b/cmk/gui/notifications.py
index 5476b98..5953353 100644
--- a/cmk/gui/notifications.py
+++ b/cmk/gui/notifications.py
@@ -196,7 +196,7 @@ def page_clear():
else:
acktime = float(acktime)
- prev_url = html.get_url_input('prev_url')
+ prev_url = html.get_url_input('prev_url', '')
if html.var('_confirm'):
acknowledge_failed_notifications(acktime)
html.reload_sidebar()