1
0
Fork 0
mirror of synced 2024-07-15 03:05:57 +12:00

Update through table error message

This commit is contained in:
Mel O'Hagan 2023-01-19 14:14:29 +00:00
parent 9729c20e9d
commit b4dcdfa84f

View file

@ -83,8 +83,7 @@
errObj.through = tableNotSet
}
if ($touched.through && invalidThroughTable(fromRelate)) {
errObj.through =
"Ensure all columns in table are nullable or auto generated"
errObj.through = "Ensure non-key columns are nullable or auto-generated"
}
if ($touched.foreign && !isMany && !fromRelate.fieldName) {
errObj.foreign = "Please pick the foreign key"