mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Parses malformed N fields a bit more tolerantly. Thanks to nibbler for the patch :-)
This commit is contained in:
parent
4498b9a9cc
commit
82998ab1a6
@ -424,11 +424,11 @@ Contacts={
|
||||
} else {
|
||||
narray = this.data.N[0]['value'];
|
||||
}
|
||||
this.famname = narray[0];
|
||||
this.givname = narray[1];
|
||||
this.addname = narray[2];
|
||||
this.honpre = narray[3];
|
||||
this.honsuf = narray[4];
|
||||
this.famname = narray[0] || '';
|
||||
this.givname = narray[1] || '';
|
||||
this.addname = narray[2] || '';
|
||||
this.honpre = narray[3] || '';
|
||||
this.honsuf = narray[4] || '';
|
||||
if(this.honpre.length > 0) {
|
||||
this.fullname += this.honpre + ' ';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user