Fixes #4067 - Make unrequired custom fields nullable

This commit is contained in:
snipe 2017-09-29 03:30:13 -07:00
parent faf3802971
commit a4b30279ee

View file

@ -49,6 +49,8 @@ class CustomFieldset extends Model
(($field->field_encrypted =='1') && (Gate::allows('admin')) )) {
if ($field->pivot->required) {
$rule[]="required";
} else {
$rule[]="nullable";
}
}