mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 12:50:55 -04:00
Fix for client's without names
This commit is contained in:
parent
909a5801d6
commit
49d648d6ef
@ -844,6 +844,7 @@
|
|||||||
// create client dictionary
|
// create client dictionary
|
||||||
for (var i=0; i<clients.length; i++) {
|
for (var i=0; i<clients.length; i++) {
|
||||||
var client = clients[i];
|
var client = clients[i];
|
||||||
|
clientMap[client.public_id] = client;
|
||||||
var clientName = getClientDisplayName(client);
|
var clientName = getClientDisplayName(client);
|
||||||
if (!clientName) {
|
if (!clientName) {
|
||||||
continue;
|
continue;
|
||||||
@ -858,7 +859,6 @@
|
|||||||
$clientSelect.append(new Option(contactName, client.public_id));
|
$clientSelect.append(new Option(contactName, client.public_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clientMap[client.public_id] = client;
|
|
||||||
$clientSelect.append(new Option(clientName, client.public_id));
|
$clientSelect.append(new Option(clientName, client.public_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user