changeset 0b90221aac32 in sao:4.2
details: https://hg.tryton.org/sao?cmd=changeset;node=0b90221aac32
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 5bbff9eab8d9 -r 0b90221aac32 src/view/form.js
--- a/src/view/form.js  Fri Mar 08 18:38:16 2019 +0100
+++ b/src/view/form.js  Fri Mar 15 11:19:26 2019 +0100
@@ -2562,7 +2562,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;
@@ -2938,7 +2938,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;

Reply via email to