fixed issue 1527 with smartgrid (again), thanks ato.steil

This commit is contained in:
mdipierro
2013-06-18 07:44:50 -05:00
parent 7e245e3fbe
commit e055c3af7e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 = []