This commit is contained in:
spencerrlongg 2024-07-23 16:59:58 -05:00
parent 0f2f559d7a
commit 0ae297634e

View file

@ -915,12 +915,10 @@ class Helper
foreach ($rules as $rule_name => $rule) {
if ($rule_name == $field) {
if (is_array($rule)) {
foreach ($rule as $rule_value) {
if ($rule_value === 'required') {
return true;
} else {
return false;
}
if (in_array('required', $rule)) {
return true;
} else {
return false;
}
} else {
if (strpos($rule, 'required') === false) {