Retreive current record after saving

issue371001
(transplanted from 8a902d5ad123085bd9c2dda0203483295ee0a386)
This commit is contained in:
Cédric Krier committed 2012-05-19 15:40:27 +02:00
1 parent c22b7eb52a
commit f2160ea20c
1 file changed
+1 -1
+1 -1
View File
@@ -166,8 +166,8 @@ class ViewForm(ParserView):
focus_widget.grab_focus()
def button_clicked(self, widget):
record = self.screen.current_record
record_id = self.screen.save_current()
record = self.screen.current_record
attrs = widget.attrs
if record_id:
if not attrs.get('confirm', False) or \