changeset 0461c402cba7 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=0461c402cba7
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
diffstat:
src/model.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6ef751d87684 -r 0461c402cba7 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
@@ -662,7 +662,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));