Return display promises in set_default

issue11369
review384871002
This commit is contained in:
Cédric Krier
2022-04-16 11:23:26 +02:00
parent 600f22f43a
commit e6308a58d3
+3 -2
View File
@@ -969,8 +969,9 @@
this.on_change_with(fieldnames);
const callback = () => {
if (display) {
return this.group.root_group.screens
.forEach(screen => screen.display());
return jQuery.when.apply(
jQuery, this.group.root_group.screens
.map(screen => screen.display()));
}
};
if (validate) {