fixed decimal bug in sqlform, thanks Anthony

This commit is contained in:
Massimo Di Pierro
2011-12-16 11:57:29 -06:00
parent 638d54c550
commit a01cc89ff2
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-16 11:55:10) stable
Version 1.99.4 (2011-12-16 11:57:23) stable
+3 -3
View File
@@ -876,10 +876,10 @@ class SQLFORM(FORM):
dspval = ''
elif field.type == 'blob':
continue
elif field.type in self.widgets:
inp = self.widgets[field.type].widget(field, default)
else:
inp = self.widgets.string.widget(field, default)
field_type = widget_class.match(str(field.type)).group()
field_type = field_type in self.widgets and field_type or 'string'
inp = self.widgets[field_type].widget(field, default)
xfields.append((row_id,label,inp,comment))
self.custom.dspval[fieldname] = dspval or nbsp