fixed issue 1562:The dspval of integer value zero is nbsp not 0, thanks iiijjjiii

This commit is contained in:
mdipierro
2013-07-02 07:21:09 -05:00
parent a449c4ede5
commit 182bbbdcc2
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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