mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed rule
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
00ebc8b64d
commit
1f4118a146
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue