Close #24625
This commit is contained in:
parent
45688e287a
commit
a4563c7ad4
@ -76,13 +76,16 @@ trait CommonPeople
|
|||||||
$thirdpartyid = 0;
|
$thirdpartyid = 0;
|
||||||
$elementforaltlanguage = $this->element;
|
$elementforaltlanguage = $this->element;
|
||||||
if ($this->element == 'societe') {
|
if ($this->element == 'societe') {
|
||||||
|
/** @var Societe $this */
|
||||||
$thirdpartyid = $this->id;
|
$thirdpartyid = $this->id;
|
||||||
}
|
}
|
||||||
if ($this->element == 'contact') {
|
if ($this->element == 'contact') {
|
||||||
|
/** @var Contact $this */
|
||||||
$contactid = $this->id;
|
$contactid = $this->id;
|
||||||
$thirdpartyid = empty($this->fk_soc) ? 0 : $this->fk_soc;
|
$thirdpartyid = empty($this->fk_soc) ? 0 : $this->fk_soc;
|
||||||
}
|
}
|
||||||
if ($this->element == 'user') {
|
if ($this->element == 'user') {
|
||||||
|
/** @var User $this */
|
||||||
$contactid = $this->contact_id;
|
$contactid = $this->contact_id;
|
||||||
$thirdpartyid = empty($object->fk_soc) ? 0 : $object->fk_soc;
|
$thirdpartyid = empty($object->fk_soc) ? 0 : $object->fk_soc;
|
||||||
}
|
}
|
||||||
@ -90,7 +93,7 @@ trait CommonPeople
|
|||||||
$out = '';
|
$out = '';
|
||||||
|
|
||||||
$outdone = 0;
|
$outdone = 0;
|
||||||
$coords = $this->getFullAddress(1, ', ', (!empty($conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT) ? $conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT : 0));
|
$coords = $this->getFullAddress(1, ', ', getDolGlobalInt('MAIN_SHOW_REGION_IN_STATE_SELECT'));
|
||||||
if ($coords) {
|
if ($coords) {
|
||||||
if (!empty($conf->use_javascript_ajax)) {
|
if (!empty($conf->use_javascript_ajax)) {
|
||||||
// Add picto with tooltip on map
|
// Add picto with tooltip on map
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user