mirror of https://github.com/nextcloud/contacts
fix issue #373 suppresses comma when last name sorting is selected
This commit is contained in:
parent
573a7c8164
commit
dbd8243532
|
@ -14,7 +14,8 @@ angular.module('contactsApp')
|
|||
|
||||
if (SortByService.getSortByKey() === 'sortLastName') {
|
||||
return (
|
||||
ctrl.contact.lastName() + ', '
|
||||
ctrl.contact.lastName()
|
||||
+ (ctrl.contact.firstName() ? ', ' : '')
|
||||
+ ctrl.contact.firstName() + ' '
|
||||
+ ctrl.contact.additionalNames()
|
||||
).trim();
|
||||
|
@ -31,3 +32,4 @@ angular.module('contactsApp')
|
|||
return ctrl.contact.displayName();
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue