Initialize customFormat to prevent Blade error when creating new fields (#6596)

This commit is contained in:
Steffen 2019-01-15 22:56:56 +01:00 committed by snipe
parent 1de9087427
commit 61c619660d

View file

@ -56,7 +56,8 @@ class CustomFieldsController extends Controller
$this->authorize('create', CustomField::class); $this->authorize('create', CustomField::class);
return view("custom_fields.fields.edit",[ return view("custom_fields.fields.edit",[
'predefinedFormats' => Helper::predefined_formats() 'predefinedFormats' => Helper::predefined_formats(),
'customFormat' => ''
])->with('field', new CustomField()); ])->with('field', new CustomField());
} }