diff --git a/VERSION b/VERSION index 44abf30b..c174dfc2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-11-30 22:33:54) dev +Version 1.99.3 (2011-11-30 22:36:21) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index e074999a..e44df094 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1829,8 +1829,10 @@ class SQLFORM(FORM): htmltable = DIV(htmltable,_style='width:100%;overflow-x:scroll') if selectable: htmltable = FORM(htmltable,INPUT(_type="submit")) - if htmltable.process(formname=formname).accepted: - records = [int(r) for r in htmltable.vars.records or []] + if htmltable.process(formname=formname).accepted:# + htmltable.vars.records = htmltable.vars.records or [] + htmltable.vars.records = htmltable.vars.records if type(htmltable.vars.records) == list else [htmltable.vars.records] + records = [int(r) for r in htmltable.vars.records] selectable(records) redirect(referrer) else: