Show 'Unnamed Client' for clients w/o a name
This commit is contained in:
parent
9e082ef274
commit
9543336b31
2 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue