mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
if no separate name-components given, simply split first word off as n_given and rest as n_family
This commit is contained in:
parent
71ef7ccd0d
commit
2d2b16a2f6
@ -123,6 +123,11 @@ class JsContact
|
|||||||
|
|
||||||
case 'fullName':
|
case 'fullName':
|
||||||
$contact['n_fn'] = self::parseString($value);
|
$contact['n_fn'] = self::parseString($value);
|
||||||
|
// if no separate name-components given, simply split first word off as n_given and rest as n_family
|
||||||
|
if (!isset($data['name']))
|
||||||
|
{
|
||||||
|
list($contact['n_given'], $contact['n_family']) = explode(' ', $contact['n_fn'], 2);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'organizations':
|
case 'organizations':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user