Skip to content

Commit

Permalink
Initialize customFormat to prevent Blade error when creating new fiel…
Browse files Browse the repository at this point in the history
…ds (#6596)
  • Loading branch information
smb authored and snipe committed Jan 15, 2019
1 parent 1de9087 commit 61c6196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/CustomFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function create()
$this->authorize('create', CustomField::class);

return view("custom_fields.fields.edit",[
'predefinedFormats' => Helper::predefined_formats()
'predefinedFormats' => Helper::predefined_formats(),
'customFormat' => ''
])->with('field', new CustomField());
}

Expand Down

0 comments on commit 61c6196

Please sign in to comment.