Enhance vcard

This commit is contained in:
Laurent Destailleur 2023-01-15 01:28:02 +01:00
parent b754b7a99f
commit 35a7f3c0ff
2 changed files with 2 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class vCard
$country = $object->country_code ? $object->country : '';
if ($object->address || $object->town || $object->state || $object->zip || $object->country) {
$this->setAddress("", "", $object->address, $object->town, $object->state, $object->zip, $country, "TYPE=WORK");
$this->setAddress("", "", $object->address, $object->town, $object->state, $object->zip, $country, "");
//$this->setLabel("", "", $object->address, $object->town, $object->state, $object->zip, $country, "TYPE=HOME");
}

View File

@ -154,6 +154,7 @@ if (getDolUserInt('USER_PUBLIC_HIDE_SOCIALNETWORKS', 0, $object)) {
}
if (getDolUserInt('USER_PUBLIC_HIDE_ADDRESS', 0, $object)) {
$object->address = '';
$object->town = '';
$object->zip = '';
$object->state = '';
$object->country = '';