1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix client dropdown if only name is set

This commit is contained in:
Hillel Coren 2017-02-28 20:48:15 +02:00
parent 7ffbda80c5
commit dd15832469

View File

@ -853,7 +853,7 @@
if (contact.is_primary === '1') { if (contact.is_primary === '1') {
contact.send_invoice = true; contact.send_invoice = true;
} }
if (clientName != contactName) { if (contactName && clientName != contactName) {
$clientSelect.append(new Option(contactName, client.public_id)); $clientSelect.append(new Option(contactName, client.public_id));
} }
} }