fixed issue 1562:The dspval of integer value zero is nbsp not 0, thanks iiijjjiii
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.02.07.16.53
|
Version 2.6.0-development+timestamp.2013.07.02.07.20.31
|
||||||
|
|||||||
+1
-1
@@ -1116,7 +1116,7 @@ class SQLFORM(FORM):
|
|||||||
inp = self.widgets[field_type].widget(field, default)
|
inp = self.widgets[field_type].widget(field, default)
|
||||||
|
|
||||||
xfields.append((row_id, label, inp, comment))
|
xfields.append((row_id, label, inp, comment))
|
||||||
self.custom.dspval[fieldname] = dspval or nbsp
|
self.custom.dspval[fieldname] = dspval if (dspval is not None) else nbsp
|
||||||
self.custom.inpval[
|
self.custom.inpval[
|
||||||
fieldname] = inpval if not inpval is None else ''
|
fieldname] = inpval if not inpval is None else ''
|
||||||
self.custom.widget[fieldname] = inp
|
self.custom.widget[fieldname] = inp
|
||||||
|
|||||||
Reference in New Issue
Block a user