From e055c3af7edcc9a89dd4b183e9f0d1288ecd277f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 18 Jun 2013 07:44:50 -0500 Subject: [PATCH] fixed issue 1527 with smartgrid (again), thanks ato.steil --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index cb8c9da8..fda8a927 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.5.1-stable+timestamp.2013.06.18.07.22.19 +Version 2.5.1-stable+timestamp.2013.06.18.07.44.05 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 7fb0cdb7..cb1c1f3b 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1959,7 +1959,7 @@ class SQLFORM(FORM): tablenames += db._adapter.tables(join) tables = [db[tablename] for tablename in tablenames] if fields: - columns = copy.copy(fields) + columns = [f for f in fields if f.tablename in tablenames] else: fields = [] columns = []