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

View File

@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.01.20.14.22.13
Version 2.4.1-alpha.2+timestamp.2013.01.20.14.47.52

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: