From 3b017cb0e939a6a0c7c1bdf0e36609cf61d2287f Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 30 Nov 2011 22:36:22 -0600 Subject: [PATCH] http://code.google.com/p/web2py/issues/detail?id=525, thanks mbelletti --- VERSION | 2 +- gluon/sqlhtml.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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: