From dd15832469baff10f24c69117595da9e1494bb72 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 28 Feb 2017 20:48:15 +0200 Subject: [PATCH] Fix client dropdown if only name is set --- resources/views/invoices/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 9799f54a67..31bb991d4a 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -853,7 +853,7 @@ if (contact.is_primary === '1') { contact.send_invoice = true; } - if (clientName != contactName) { + if (contactName && clientName != contactName) { $clientSelect.append(new Option(contactName, client.public_id)); } }