From c214999e272d16e32804c0ff6b48b891663bdbd3 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 20 Jan 2013 14:48:45 -0600 Subject: [PATCH] fixed issue 1294, thanks Vincent Chevrier --- VERSION | 2 +- gluon/sqlhtml.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 094c3568..be55cb8c 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index aa725f15..bf9e8ea0 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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: