diff --git a/php/composer.json b/php/composer.json index 8ec53e7..b7a52d1 100644 --- a/php/composer.json +++ b/php/composer.json @@ -6,6 +6,6 @@ } ], "require": { - "jeroendesloovere/vcard": "dev-patchcategories" + "jeroendesloovere/vcard": "dev-master" } } diff --git a/php/module.contact.php b/php/module.contact.php index e34b47e..0699f53 100644 --- a/php/module.contact.php +++ b/php/module.contact.php @@ -872,6 +872,9 @@ class ContactModule extends Module $properties["fileas"] = $vCard->organization; } } + if (isset($vCard->department)) { + $properties["department_name"] = $vCard->department; + } if (isset($vCard->title)) { $properties["title"] = $vCard->title; } @@ -927,6 +930,15 @@ class ContactModule extends Module if (isset($vCard->note)) { $properties["notes"] = $vCard->note; } + if (isset($vCard->x["msassistant"])) { + $properties["assistant"] = $vCard->x["msassistant"]; + } + if (isset($vCard->x["msmanager"])) { + $properties["manager_name"] = $vCard->x["msmanager"]; + } + if (isset($vCard->x["msspouse"])) { + $properties["spouse_name"] = $vCard->x["msspouse"]; + } if (isset($vCard->categories) && count($vCard->categories) > 0) { $categories = array(); foreach ($vCard->categories as $category) {