This commit is contained in:
2021-02-22 19:37:02 +00:00
parent 18475d6fe2
commit 98d33c010a
3 changed files with 35 additions and 42 deletions

View File

@@ -143,7 +143,9 @@ export default {
if (vm.formState.loading) {
return true;
}
// if (ref == "Items.PartId") {
// debugger;
// }
let ctrl = getControl(vm, ref);
if (typeof ctrl == "undefined") {
// console.log("gzform:required rule - bailing due to undefined", ref);
@@ -169,17 +171,7 @@ export default {
});
return err;
},
// ///////////////////////////////
// // REQUIRED STANDALONE
// // (used in translation form)
// requiredStandAlone(value, fieldName) {
// return (
// !!value ||
// window.$gz.translation
// .get("ErrorRequiredFieldEmpty")
// .replace(/\{0\}/g, fieldName)
// );
// },
///////////////////////////////
// MAXLENGTH
//