changeset 57918cfe9f34 in sao:4.8 details: https://hg.tryton.org/sao?cmd=changeset;node=57918cfe9f34 description: Test not field instead of undefined
issue8188 review255091005 (grafted from 7b63227eeeb85c823929e4be3ab13f2fc93d7df7) diffstat: src/view/form.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 4cad1c465d8e -r 57918cfe9f34 src/view/form.js --- a/src/view/form.js Fri Mar 15 11:18:14 2019 +0100 +++ b/src/view/form.js Fri Mar 15 11:19:26 2019 +0100 @@ -2941,7 +2941,7 @@ this._set_button_sensitive(); this.prm.done(function() { - if (field === undefined) { + if (!field) { this.screen.new_group(); this.screen.set_current_record(null); this.screen.group.parent = null; @@ -3344,7 +3344,7 @@ Sao.View.Form.Many2Many._super.display.call(this, record, field); this.prm.done(function() { - if (field === undefined) { + if (!field) { this.screen.new_group(); this.screen.set_current_record(null); this.screen.group.parent = null;