fixed Issue 1528:SQLFORM.smartgrid: Bug in links, thanks jjachuf

This commit is contained in:
mdipierro
2013-06-13 23:42:22 -05:00
parent 7b303deade
commit 4310d3e2d6
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.5.1-stable+timestamp.2013.06.13.15.30.17
Version 2.5.1-stable+timestamp.2013.06.13.23.41.35
+6 -2
View File
@@ -2688,9 +2688,13 @@ class SQLFORM(FORM):
if grid.create_form:
header = T('New %(entity)s') % dict(entity=table._singular)
elif grid.update_form:
header = T('Edit %(entity)s') % dict(entity=format(table,grid.update_form.record))
header = T('Edit %(entity)s') % dict(
entity=format(grid.update_form.table,
grid.update_form.record))
elif grid.view_form:
header = T('View %(entity)s') % dict(entity=format(table,grid.view_form.record))
header = T('View %(entity)s') % dict(
entity=format(grid.view_form.table,
grid.view_form.record))
if next:
breadcrumbs.append(LI(
A(T(header), _class=trap_class(),_href=url()),