mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Initialize customFormat to prevent Blade error when creating new fields (#6596)
This commit is contained in:
parent
1de9087427
commit
61c619660d
|
@ -56,7 +56,8 @@ class CustomFieldsController extends Controller
|
|||
$this->authorize('create', CustomField::class);
|
||||
|
||||
return view("custom_fields.fields.edit",[
|
||||
'predefinedFormats' => Helper::predefined_formats()
|
||||
'predefinedFormats' => Helper::predefined_formats(),
|
||||
'customFormat' => ''
|
||||
])->with('field', new CustomField());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue