diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php index 4404736f5e0..8d586648f80 100644 --- a/htdocs/core/class/vcard.class.php +++ b/htdocs/core/class/vcard.class.php @@ -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"); } diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php index a5d3ac5b1e6..03d153dedd0 100644 --- a/htdocs/public/users/view.php +++ b/htdocs/public/users/view.php @@ -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 = '';