From 9eef25ae0ab557f333ae5c6ff0f5699981f0bd00 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 31 Jul 2018 11:16:25 +0200 Subject: [PATCH] [FIX] web: can focus out then focus in when currently being selected Before this fix, in studio when the user select the field then focus out then focus in and selected a child field, an exception is triggered because the last page is visible but the data are removed. A test in enterprise (web_studio) is added with this commit. --- addons/web/static/src/js/widgets/model_field_selector.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web/static/src/js/widgets/model_field_selector.js b/addons/web/static/src/js/widgets/model_field_selector.js index f5148286fcc..68539d4502b 100644 --- a/addons/web/static/src/js/widgets/model_field_selector.js +++ b/addons/web/static/src/js/widgets/model_field_selector.js @@ -270,7 +270,6 @@ var ModelFieldSelector = Widget.extend({ if (this.dirty) { this.dirty = false; - this.pages = this.pages.slice(0, this.chain.length || 1); this.trigger_up("field_chain_changed", {chain: this.chain}); } },