summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-07-31 09:16:25 +0000
committerNicolas Lempereur <nle@odoo.com>2019-01-16 16:18:59 +0000
commit586dc9e025b787e18686717c33d4d0ffed7f8d79 (patch)
treeb785e09e33002291b70d14aa11b701fe0aa4bbcc /addons/web/static/src/js
parent4c93e4be0dad1f6a4deaaf2cc678e77becfdd916 (diff)
[FIX] web: can reopen ModelField selector widget
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. backport of 12.0's 9eef25ae0a opw-1928453 closes #30277
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/widgets/model_field_selector.js1
1 files changed, 0 insertions, 1 deletions
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 81abfbe0d6c..414305f6f06 100644
--- a/addons/web/static/src/js/widgets/model_field_selector.js
+++ b/addons/web/static/src/js/widgets/model_field_selector.js
@@ -257,7 +257,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});
}
},