Skip to content

Commit

Permalink
Update browse.blade.php
Browse files Browse the repository at this point in the history
Accounting an array generates an error in the count returning a 500 error in the front-end, it becomes necessary to check if it is true.
  • Loading branch information
vitormicillo authored Oct 20, 2021
1 parent 2464835 commit 0206507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/bread/browse.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
@endif

@elseif($row->type == 'multiple_checkbox' && property_exists($row->details, 'options'))
@if (@count(json_decode($data->{$row->field})) > 0)
@if (@count(json_decode($data->{$row->field}, true)) > 0)
@foreach(json_decode($data->{$row->field}) as $item)
@if (@$row->details->options->{$item})
{{ $row->details->options->{$item} . (!$loop->last ? ', ' : '') }}
Expand Down

0 comments on commit 0206507

Please sign in to comment.