From ba603528d78687b92f051bf438c6e0665aafc8d1 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 4 Feb 2013 16:45:42 -0600 Subject: [PATCH] grid breadcrumbs uses field.label, not field.name, thanks Michael Beller --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 23ab0425..6533dea2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.02.04.15.11.29 +Version 2.4.1-alpha.2+timestamp.2013.02.04.16.44.47 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 90ccf722..750df107 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2552,7 +2552,7 @@ class SQLFORM(FORM): links_in_grid=links_in_grid, user_signature=user_signature, **kwargs) if isinstance(grid, DIV): - header = table._plural + (field and ' for ' + field.name or '') + header = table._plural + (field and ' for ' + field.label or '') breadcrumbs.append(LI(A(T(header), _class=trap_class(), _href=url()), _class='active w2p_grid_breadcrumb_elem')) grid.insert(