diff --git a/VERSION b/VERSION index d6b339bd..a2db4c36 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-30 11:09:19) stable +Version 2.2.1 (2012-10-31 09:14:53) stable diff --git a/gluon/tools.py b/gluon/tools.py index b6fb9ace..f89e3ecf 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -3464,10 +3464,12 @@ class Crud(object): deletable = self.settings.update_deletable if message is DEFAULT: message = self.messages.record_updated + if not 'hidden' in attributes: + attributes['hidden'] = {} + attributes['hidden']['_next'] = next form = SQLFORM( table, record, - hidden=dict(_next=next), showid=self.settings.showid, submit_button=self.messages.submit_button, delete_label=self.messages.delete_label, @@ -3475,7 +3477,7 @@ class Crud(object): upload=self.settings.download_url, formstyle=self.settings.formstyle, separator=self.settings.label_separator, - **attributes + **attributes # contains hidden ) self.accepted = False self.deleted = False