1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Fix empty displayname. Close #305

This commit is contained in:
Thomas Tanghus 2013-12-17 17:53:53 +01:00
parent c430120092
commit a0b0540767

View File

@ -983,7 +983,7 @@ OC.Contacts = OC.Contacts || {};
*/
Contact.prototype.renderListItem = function(isnew) {
this.displayNames.fn = this.getPreferredValue('FN')
|| this.getPreferredValue('ORG')
|| this.getPreferredValue('ORG', []).pop()
|| this.getPreferredValue('EMAIL')
|| this.getPreferredValue('TEL');