fixed decimal bug in sqlform, thanks Anthony
This commit is contained in:
@@ -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
@@ -876,10 +876,10 @@ class SQLFORM(FORM):
|
|||||||
dspval = ''
|
dspval = ''
|
||||||
elif field.type == 'blob':
|
elif field.type == 'blob':
|
||||||
continue
|
continue
|
||||||
elif field.type in self.widgets:
|
|
||||||
inp = self.widgets[field.type].widget(field, default)
|
|
||||||
else:
|
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))
|
xfields.append((row_id,label,inp,comment))
|
||||||
self.custom.dspval[fieldname] = dspval or nbsp
|
self.custom.dspval[fieldname] = dspval or nbsp
|
||||||
|
|||||||
Reference in New Issue
Block a user