fixed issue 1294, thanks Vincent Chevrier

This commit is contained in:
mdipierro
2013-01-20 14:48:45 -06:00
parent 9e1ce571e4
commit c214999e27
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -2017,7 +2017,12 @@ class SQLFORM(FORM):
expcolumns = columns
if export_type.endswith('with_hidden_cols'):
expcolumns = [f for f in fields if f._tablename in tablenames]
expcolumns = []
for table in tables:
for field in table:
if field.readable and field._tablename in tablenames:
expcolumns.append(field)
if export_type in exportManager and exportManager[export_type]:
if request.vars.keywords:
try: