Fix current record values not included in page layout variables

This commit is contained in:
Jože Fortun
2024-05-15 08:38:12 +02:00
parent a342b74366
commit df391e2aa2
@@ -625,6 +625,9 @@ export default {
this.processing = true
return this.loadRecord().then(record => {
// Set record so the latest one can be used in the layout expressions
variables.record = record ? record.serialize() : {}
return this.determineLayout(undefined, variables).then(() => {
this.record = record
this.initialRecordState = record.clone()