diff --git a/lib/NGCP/Panel/Controller/Customer.pm b/lib/NGCP/Panel/Controller/Customer.pm index f89c06450f..afb1602c16 100644 --- a/lib/NGCP/Panel/Controller/Customer.pm +++ b/lib/NGCP/Panel/Controller/Customer.pm @@ -62,7 +62,7 @@ sub list_customer :Chained('/') :PathPart('customer') :CaptureArgs(0) { { name => "contact.email", search => 1, title => $c->loc("Contact Email") }, { name => "contact.firstname", search => 1, title => '' }, { name => "contact.lastname", search => 1, title => $c->loc("Name"), - custom_renderer => 'function ( data, type, full ) { return full.contact_firstname + " " + full.contact_lastname; }' }, + custom_renderer => 'function ( data, type, full ) { var sep = (full.contact_firstname && full.contact_lastname) ? " " : ""; return (full.contact_firstname || "") + sep + (full.contact_lastname || ""); }' }, { name => "billing_mappings_actual.billing_mappings.product.name", search => 1, title => $c->loc("Product") }, { name => "billing_mappings_actual.billing_mappings.billing_profile.name", search => 1, title => $c->loc("Billing Profile") }, { name => "status", search => 1, title => $c->loc("Status") },