Fixed rule

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-23 22:15:37 +01:00
parent 00ebc8b64d
commit 1f4118a146

View file

@ -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;