FIX Try getting field with ID suffix

This commit is contained in:
Steve Boyd 2024-04-30 10:01:26 +12:00
parent 44f77ecdac
commit 906c29444b
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ class RequiredFields extends Validator
$fieldName = $fieldName->getName();
} else {
$formField = $fields->dataFieldByName($fieldName);
if (is_null($formField)) {
$formField = $fields->dataFieldByName($fieldName . 'ID');
}
}
// submitted data for file upload fields come back as an array