mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -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();
|
$rules = $class::rules();
|
||||||
foreach ($rules as $rule_name => $rule) {
|
foreach ($rules as $rule_name => $rule) {
|
||||||
if ($rule_name == $field) {
|
if ($rule_name == $field) {
|
||||||
if (strpos($rule, 'required') === false) {
|
if (strpos($rule_name, 'required') === false) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue