mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Show 'Unnamed Client' for clients w/o a name
This commit is contained in:
parent
9e082ef274
commit
9543336b31
@ -328,7 +328,8 @@ class Client extends EntityModel
|
||||
}
|
||||
|
||||
$contact = $this->contacts[0];
|
||||
return $contact->getDisplayName();
|
||||
|
||||
return $contact->getDisplayName() ?: trans('texts.unnamed_client');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2098,7 +2098,7 @@ $LANG = array(
|
||||
'facebook_and_twitter' => 'Facebook and Twitter',
|
||||
'facebook_and_twitter_help' => 'Follow our feeds to help support our project',
|
||||
'reseller_text' => 'Note: the white-label license is intended for personal use, please email us at :email if you\'d like to resell our app.',
|
||||
|
||||
'unnamed_client' => 'Unnamed Client',
|
||||
);
|
||||
|
||||
return $LANG;
|
||||
|
Loading…
Reference in New Issue
Block a user