From 395ce6303b6ff494f657ba8fbad110371335a193 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 6 Mar 2018 20:21:32 +0200 Subject: [PATCH] L5.4 fix --- resources/views/invoices/edit.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 6417703865bf..a9b905d23d07 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -910,7 +910,7 @@ } @endif - @if (isset($tasks) && $tasks) + @if (isset($tasks) && count($tasks)) var tasks = {!! json_encode($tasks) !!}; for (var i=0; icount()) model.expense_currency_id({{ isset($expenseCurrencyId) ? $expenseCurrencyId : 0 }}); // move the blank invoice line item to the end