grid breadcrumbs uses field.label, not field.name, thanks Michael Beller

This commit is contained in:
mdipierro
2013-02-04 16:45:42 -06:00
parent 9069f06857
commit ba603528d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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(