This commit is contained in:
@@ -48,7 +48,7 @@ function isNumber(n) {
|
||||
function getControl(vm, ref) {
|
||||
let ctrl = vm.$refs[ref];
|
||||
|
||||
//I don't think this is reauired anymore
|
||||
//I don't think this is required anymore
|
||||
// if (ctrl === undefined) {
|
||||
// //it's either a sub field in custom fields component or it's a coding error
|
||||
// let customFields = vm.$refs["customFields"];
|
||||
@@ -712,13 +712,10 @@ export default {
|
||||
//See if control templateFieldName is in server required fields collection
|
||||
//this is a collection of both custom field definitions and standard form fields that are required
|
||||
//since all names are unique can just filter out the one we need by name which will inherently ignore custom fields by default
|
||||
//de-lodash
|
||||
// let templateItem = window.$gz. _.find(template, [
|
||||
// "fld",
|
||||
// formCustomTemplateFieldName
|
||||
// ]);
|
||||
|
||||
let templateItem = template.find(z => z.fld == formCustomTemplateFieldName);
|
||||
let templateItem = template.find(
|
||||
z => z.fld.toLowerCase() == formCustomTemplateFieldName.toLowerCase()
|
||||
);
|
||||
|
||||
if (templateItem === undefined || templateItem.hide !== true) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user