diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 85421027d151..8bd3ab420c16 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -922,15 +922,11 @@ public static function checkIfRequired($class, $field) } } else { if (strpos($rule, 'required') === false) { - return false; - } else { - if (strpos($rule_name, 'required') === false) { $required = false; } else { $required = true; } } - } } } return $required;