fixed issue 1562:The dspval of integer value zero is nbsp not 0, thanks iiijjjiii
This commit is contained in:
+1
-1
@@ -1116,7 +1116,7 @@ class SQLFORM(FORM):
|
||||
inp = self.widgets[field_type].widget(field, default)
|
||||
|
||||
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[
|
||||
fieldname] = inpval if not inpval is None else ''
|
||||
self.custom.widget[fieldname] = inp
|
||||
|
||||
Reference in New Issue
Block a user