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

Fix for client's without names

This commit is contained in:
Hillel Coren 2017-02-21 15:15:55 +02:00
parent 909a5801d6
commit 49d648d6ef

View File

@ -844,6 +844,7 @@
// create client dictionary
for (var i=0; i<clients.length; i++) {
var client = clients[i];
clientMap[client.public_id] = client;
var clientName = getClientDisplayName(client);
if (!clientName) {
continue;
@ -858,7 +859,6 @@
$clientSelect.append(new Option(contactName, client.public_id));
}
}
clientMap[client.public_id] = client;
$clientSelect.append(new Option(clientName, client.public_id));
}