Module: check_mk
Branch: master
Commit: e5d1f16edba0d8976e90cd567036baf8c15d1396
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5d1f16edba0d8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 8 12:28:11 2012 +0100
CascadingDropdown: fix initially displayed valued
---
web/htdocs/valuespec.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 516463c..e25ffa5 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -637,7 +637,7 @@ class CascadingDropdown(ValueSpec):
options.append((str(nr), title))
if value == val or (
type(value) == tuple and value[0] == val):
- def_val = nr
+ def_val = str(nr)
vp = varprefix + "_sel"
onchange="valuespec_cascading_change(this, '%s', %d);" %
(varprefix, len(self._choices))