diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 97505d1bcf31..721dfa056a4e 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -909,7 +909,7 @@ @if (isset($tasks) && $tasks) // move the blank invoice line item to the end var blank = model.invoice().invoice_items.pop(); - var tasks = {!! $tasks !!}; + var tasks = {!! json_encode($tasks) !!}; for (var i=0; i