Set value before validate record in button click

issue3322
review1022002
This commit is contained in:
Cédric Krier committed 2013-08-21 18:31:42 +02:00
1 parent 95e96766a8
commit 46c097ca6b
1 file changed
+1
+1
View File
@@ -163,6 +163,7 @@ class ViewForm(ParserView):
def button_clicked(self, widget):
record = self.screen.current_record
self.set_value()
fields = self.get_fields()
if not record.validate(fields):
self.screen.display(set_cursor=True)