From 1a55a423f7fde2998bc8cdf20d2cf35de7974d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 30 Jun 2016 21:56:10 +0200 Subject: [PATCH] Clear the new record for Preference The Preference window create a new record to simulate the read using preferences values. But this mark the record has modified and prevent to click on buttons. So the new record must be canceled just after "new" call. issue5663 review23241002 --- src/window.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.js b/src/window.js index 179ef293fa..9a0c7fe852 100644 --- a/src/window.js +++ b/src/window.js @@ -601,6 +601,7 @@ }.bind(this)); }; var set_preferences = function(preferences) { + this.screen.current_record.cancel(); this.screen.current_record.set(preferences); this.screen.current_record.id = this.screen.model.session.user_id;