Skip to content

Commit

Permalink
Fix broken json bug
Browse files Browse the repository at this point in the history
  • Loading branch information
garsaud committed Mar 28, 2018
1 parent 951fece commit 0ccc3c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<input type="hidden"
name="{{ $field['name'] }}"
value="{{ old($field['name']) ?: $field['value'] ?? json_encode($field['default'] ?? []) }}"
value="{!! e(old($field['name']) ?: $field['value'] ?? json_encode($field['default'] ?? [], true)) !!}"
@include('crud::inc.field_attributes')>

@if (isset($field['hint']))
Expand Down

0 comments on commit 0ccc3c9

Please sign in to comment.