mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
a6041ae525
|
@ -916,20 +916,20 @@ class Helper
|
||||||
if ($rule_name == $field) {
|
if ($rule_name == $field) {
|
||||||
if (is_array($rule)) {
|
if (is_array($rule)) {
|
||||||
if (in_array('required', $rule)) {
|
if (in_array('required', $rule)) {
|
||||||
$required = true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$required = false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (strpos($rule, 'required') === false) {
|
if (strpos($rule, 'required') === false) {
|
||||||
$required = false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
$required = true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $required;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue