From 41923a2e8b18d72e8aeadfebe9b7658004196d63 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 19 Jun 2017 10:51:00 +0300 Subject: [PATCH] Only set invoice public notes from client if value is set --- resources/views/invoices/knockout.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index 40e8923872..cde9b87bf1 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -14,7 +14,9 @@ function ViewModel(data) { @if (!$invoice->id) self.setDueDate(); // copy default note from the client to the invoice - model.invoice().public_notes(client.public_notes); + if (client.public_notes) { + model.invoice().public_notes(client.public_notes); + } @endif }