diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 5b32906273..a6b97cae0c 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -914,7 +914,7 @@ class Helper $rules = $class::rules(); foreach ($rules as $rule_name => $rule) { if ($rule_name == $field) { - if (strpos($rule, 'required') === false) { + if (strpos($rule_name, 'required') === false) { return false; } else { return true;