mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Fixes #4067 - Make unrequired custom fields nullable
This commit is contained in:
parent
faf3802971
commit
a4b30279ee
|
@ -49,6 +49,8 @@ class CustomFieldset extends Model
|
|||
(($field->field_encrypted =='1') && (Gate::allows('admin')) )) {
|
||||
if ($field->pivot->required) {
|
||||
$rule[]="required";
|
||||
} else {
|
||||
$rule[]="nullable";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue