3
0

Reset record errors when determining record page layout

This commit is contained in:
Jože Fortun 2024-06-08 16:55:34 +02:00
parent f3108cfb51
commit 8d3b2c8a8a
2 changed files with 5 additions and 0 deletions

View File

@ -432,6 +432,10 @@ export default {
}
},
resetErrors () {
this.errors = new validator.Validated()
},
/**
* Returns errors, filtered for a specific field
* @param name

View File

@ -543,6 +543,7 @@ export default {
async determineLayout (pageLayoutID, variables = {}, redirectOnFail = true) {
// Clear stored records so they can be refetched with latest values
this.clearRecordSet()
this.resetErrors()
let expressions = {}
// Only evaluate if one of the layouts has an expressions variable