Load icon field before rendering affix

Closes #14509
This commit is contained in:
Cédric Krier
2026-01-16 13:16:50 +01:00
parent 2219eb0915
commit 841a7cf815
+6 -3
View File
@@ -2555,11 +2555,14 @@
cell.text(value);
}
};
let prm = jQuery.when();
if (!record.is_loaded(this.attributes.name)) {
record.load(this.attributes.name, true, false).done(render);
} else {
render();
prm = prm.then(() => record.load(this.attributes.name, true, false));
}
if (this.icon && (this.icon in record.model.fields)) {
prm = prm.then(() => record.load(this.icon, true, false));
}
prm.done(render);
return cell;
},
clicked: function(event) {