A free open source IT asset/license management system
Initialize customFormat to prevent Blade error when creating new fields (#6596)
Steffen61c619660db3
diff --git a/app/Http/Controllers/CustomFieldsController.php b/app/Http/Controllers/CustomFieldsController.phpindex 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());}