From 9c668d3c223626164b4f679ff1d947415be0a2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 23 Aug 2013 14:13:44 +0200 Subject: [PATCH] Better on current_record when cancel Window.Form --- src/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.js b/src/window.js index 5e8c71fc23..28206af5c9 100644 --- a/src/window.js +++ b/src/window.js @@ -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);