fixed issue 1893:backwards compatibility problem with grid parameter exportclasses, thanks mweissen

This commit is contained in:
mdipierro
2014-03-09 17:26:40 -05:00
parent 733fa01b7e
commit c289bc4239
2 changed files with 6 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.9.4-stable+timestamp.2014.03.09.17.21.20
Version 2.9.4-stable+timestamp.2014.03.09.17.25.28

View File

@@ -2599,8 +2599,11 @@ class SQLFORM(FORM):
for k, v in sorted(exportManager.items()):
if not v:
continue
label = v[1] if hasattr(v, "__getitem__") else k
title = v[2] if hasattr(v, "__getitem__") else label
if hasattr(v, "__getitem__"):
label = v[1]
title = v[2] if len(v)>2 else label
else:
label = title = k
link = url2(vars=dict(
order=request.vars.order or '',
_export_type=k,