From cb6f7fc687cb243fc504c7a8264f278ec94d6700 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 28 Feb 2017 20:48:28 +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 9799f54a672e..31bb991d4a38 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)); } }