diff --git a/VERSION b/VERSION index c29b9621..1e2fc00c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.04.08.11.12.25 +Version 2.4.6-stable+timestamp.2013.04.08.12.40.11 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 32c1b9ae..704c5eea 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1648,7 +1648,14 @@ class SQLFORM(FORM): selectfields = [] for field in fields: name = str(field).replace('.', '-') - options = search_options.get(field.type.split(' ')[0], None) + # treat ftype 'decimal' as 'double' + # (this fixes problems but needs refactoring! + ftype = field.type.split(' ')[0] + if ftype.startswith('decimal'): ftype = 'double' + elif ftype=='bigint': ftype = 'integer' + elif ftype.startswith('big-'): ftype = ftype[4:] + # end + options = search_options.get(ftype, None) if options: label = isinstance( field.label, str) and T(field.label) or field.label