Enhance vcard
This commit is contained in:
parent
b754b7a99f
commit
35a7f3c0ff
@ -449,7 +449,7 @@ class vCard
|
|||||||
$country = $object->country_code ? $object->country : '';
|
$country = $object->country_code ? $object->country : '';
|
||||||
|
|
||||||
if ($object->address || $object->town || $object->state || $object->zip || $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");
|
//$this->setLabel("", "", $object->address, $object->town, $object->state, $object->zip, $country, "TYPE=HOME");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -154,6 +154,7 @@ if (getDolUserInt('USER_PUBLIC_HIDE_SOCIALNETWORKS', 0, $object)) {
|
|||||||
}
|
}
|
||||||
if (getDolUserInt('USER_PUBLIC_HIDE_ADDRESS', 0, $object)) {
|
if (getDolUserInt('USER_PUBLIC_HIDE_ADDRESS', 0, $object)) {
|
||||||
$object->address = '';
|
$object->address = '';
|
||||||
|
$object->town = '';
|
||||||
$object->zip = '';
|
$object->zip = '';
|
||||||
$object->state = '';
|
$object->state = '';
|
||||||
$object->country = '';
|
$object->country = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user