Better on current_record when cancel Window.Form

This commit is contained in:
Cédric Krier committed 2013-08-23 14:13:44 +02:00
1 parent 41d6296789
commit 9c668d3c22
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@
}
if (response_id == 'RESPONSE_CANCEL' &&
this.screen.current_record !== null) {
this.screen.current_record) {
result = false;
if ((this.screen.current_record.id < 0) || this.save_current) {
this.screen.group.remove(this.screen.current_record, true);