From e7ded43839420e8eabdcded419511bbbe7f47a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 6 Mar 2022 13:42:04 +0100 Subject: [PATCH] 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) --HG-- branch : 6.0 --- src/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.js b/src/model.js index a301fded40..ae6f67315b 100644 --- a/src/model.js +++ b/src/model.js @@ -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));