changeset e60ada2bae97 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=e60ada2bae97
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 790c51c75e85 -r e60ada2bae97 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));