Module: check_mk
Branch: master
Commit: bea7faab4b8eb23586e7e8089109046bc42fabba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bea7faab4b8eb2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 6 10:20:01 2013 +0100
Availability: fix non-persistent av options
---
web/plugins/views/availability.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 1d877d2..64e71a5 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -181,11 +181,12 @@ def render_availability_options():
is_open = False
html.begin_form("avoptions")
+ html.hidden_field("avoptions", "set")
html.write('<div class="view_form" id="avoptions"
%s>'
% (not is_open and 'style="display: none"' or '')
)
html.write("<table border=0 cellspacing=0 cellpadding=0
class=filterform><tr><td>")
- if html.form_submitted():
+ if html.var("avoptions") == "set":
for name, height, vs in avoption_entries:
try:
avoptions[name] = vs.from_html_vars("avo_" + name)