case 4372

This commit is contained in:
2023-01-05 19:11:54 +00:00
parent fee146fcd7
commit 5c36bbf86f

View File

@@ -384,9 +384,18 @@ export default {
// - CURRENT TIME, DATE, DATETIME are pretty specific but all use a datetime string so any value not datetime like should be nulled
// - CURRENT NUMBER, CURRENCY are also pretty specific but easy to identify if not fully numeric and then sb nulled or attempt to convert then null if not
const ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
z => z.dataKey == dataKey
).type;
//case 4372
let ctrlType = null;
if (this.keyStartWith != "") {
ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
z => z.dataKey == dataKey && z.fld.includes(this.keyStartWith)
).type;
} else {
//single custom control form
ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
z => z.dataKey == dataKey
).type;
}
//First get current value for the data that came from the server
let ret = cData[dataKey];