changeset 24507d544eb6 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=24507d544eb6
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 552889095191 -r 24507d544eb6 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
@@ -2954,7 +2954,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;
@@ -3355,7 +3355,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