From 4310d3e2d63fe8cd84632673c1271fae6e5aa345 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 13 Jun 2013 23:42:22 -0500 Subject: [PATCH] fixed Issue 1528:SQLFORM.smartgrid: Bug in links, thanks jjachuf --- VERSION | 2 +- gluon/sqlhtml.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index d5ec45a4..067df8fc 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 8410cd47..42767c47 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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()),