fixed issue 1207, IS_IN_SET(list_of_ints), thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.3.0 (2012-12-06 23:03:48) rc1
|
Version 2.3.0 (2012-12-07 10:57:44) rc1
|
||||||
|
|||||||
+4
-2
@@ -1897,7 +1897,8 @@ class SELECT(INPUT):
|
|||||||
if not value is None:
|
if not value is None:
|
||||||
if not self['_multiple']:
|
if not self['_multiple']:
|
||||||
for c in options: # my patch
|
for c in options: # my patch
|
||||||
if value and str(c['_value']) == str(value):
|
if ((value is not None) and
|
||||||
|
(str(c['_value']) == str(value))):
|
||||||
c['_selected'] = 'selected'
|
c['_selected'] = 'selected'
|
||||||
else:
|
else:
|
||||||
c['_selected'] = None
|
c['_selected'] = None
|
||||||
@@ -1907,7 +1908,8 @@ class SELECT(INPUT):
|
|||||||
else:
|
else:
|
||||||
values = [str(value)]
|
values = [str(value)]
|
||||||
for c in options: # my patch
|
for c in options: # my patch
|
||||||
if value and str(c['_value']) in values:
|
if ((value is not None) and
|
||||||
|
(str(c['_value']) in values)):
|
||||||
c['_selected'] = 'selected'
|
c['_selected'] = 'selected'
|
||||||
else:
|
else:
|
||||||
c['_selected'] = None
|
c['_selected'] = None
|
||||||
|
|||||||
Reference in New Issue
Block a user