changeset 5c2a02fad009 in sao:4.4
details: https://hg.tryton.org/sao?cmd=changeset;node=5c2a02fad009
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 5eacd4b54eb7 -r 5c2a02fad009 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
@@ -2599,7 +2599,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;
@@ -2981,7 +2981,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;