diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 817713f221b..4f522956f59 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -616,7 +616,12 @@ abstract class CommonObject { if (! empty($conf->use_javascript_ajax)) { - $namecoords = $this->getFullName($langs, 1).'
'.$coords; + $namecoords = ''; + if ( $this->element == 'contact' && ! empty($conf->global->MAIN_SHOW_COMPANY_NAME_IN_BANNER_ADDRESS)) + { + $namecoords.= $object->name.'
'; + } + $namecoords.= $this->getFullName($langs, 1).'
'.$coords; // hideonsmatphone because copyToClipboard call jquery dialog that does not work with jmobile $out.=''; $out.=img_picto($langs->trans("Address"), 'object_address.png');