fixed Issue 1528:SQLFORM.smartgrid: Bug in links, thanks jjachuf
This commit is contained in:
@@ -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
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user