From 61c619660db3322c3e2a78678c191af38e34845c Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 15 Jan 2019 22:56:56 +0100 Subject: [PATCH] Initialize customFormat to prevent Blade error when creating new fields (#6596) --- app/Http/Controllers/CustomFieldsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CustomFieldsController.php b/app/Http/Controllers/CustomFieldsController.php index 8d15b22cb5..0e0b95b090 100644 --- a/app/Http/Controllers/CustomFieldsController.php +++ b/app/Http/Controllers/CustomFieldsController.php @@ -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()); }