changeset 3388595bf668 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=3388595bf668
description:
Do not return promise for synchronous load call
Even if there are a pending promise, synchronous call should always
return the
field.
issue11273
review366781003
(grafted from 0461c402cba7f292c7a78f47ac55a671214c8388)
diffstat:
src/model.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d2b822f03973 -r 3388595bf668 src/model.js
--- a/src/model.js Sun Mar 06 13:37:45 2022 +0100
+++ b/src/model.js Sun Mar 06 13:42:04 2022 +0100
@@ -665,7 +665,7 @@
return;
}
}
- if (this.group.prm.state() == 'pending') {
+ if (async && this.group.prm.state() == 'pending') {
return this.group.prm.then(function() {
return this.load(name);
}.bind(this));