Module: check_mk
Branch: master
Commit: b58a32823f26ef8dabe5571d1562165c4f3aacc1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b58a32823f26ef…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 3 11:37:58 2013 +0200
Multisite: fix problem with growing list of sorters in try-out mode
---
web/htdocs/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 9f5d4c6..836f4b3 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -723,7 +723,7 @@ def page_edit_view():
allowed = allowed_for_datasource(data, datasourcename)
forms.header(title, isopen=False)
# make sure, at least 3 selection boxes are free for new columns
- while html.has_var("%s%d" % (var_prefix, maxnum - 2)):
+ while html.var("%s%d" % (var_prefix, maxnum - 2)):
maxnum += 1
for n in range(1, maxnum + 1):
forms.section(_("%d. Column") % n)