1
0
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:
Hillel Coren 2016-09-06 14:55:31 +03:00
parent 9e082ef274
commit 9543336b31
2 changed files with 3 additions and 2 deletions

View File

@ -328,7 +328,8 @@ class Client extends EntityModel
}
$contact = $this->contacts[0];
return $contact->getDisplayName();
return $contact->getDisplayName() ?: trans('texts.unnamed_client');
}
/**

View File

@ -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;