diff --git a/htdocs/contact/agenda.php b/htdocs/contact/agenda.php index f87854fbab6..3882d2ebca3 100644 --- a/htdocs/contact/agenda.php +++ b/htdocs/contact/agenda.php @@ -212,7 +212,19 @@ else $linkback = ''.$langs->trans("BackToList").''; - dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', ''); + $morehtmlref='
| '.$langs->trans("ThirdParty").' | '; - if ($object->socid > 0) - { - $objsoc->fetch($object->socid); - print $objsoc->getNomUrl(1); - } - else - { - print $langs->trans("ContactNotLinkedToCompany"); - } - print ' | '; - } - - print '||||||||
| '.$langs->trans("UserTitle").' | ';
print $object->getCivilityLabel();
diff --git a/htdocs/contact/document.php b/htdocs/contact/document.php
index 825c1e8dab5..8d003e14cf5 100644
--- a/htdocs/contact/document.php
+++ b/htdocs/contact/document.php
@@ -109,7 +109,19 @@ if ($object->id)
$linkback = ''.$langs->trans("BackToList").'';
- dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', '');
+ $morehtmlref=' ';
+ if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
+ {
+ $objsoc=new Societe($db);
+ $objsoc->fetch($object->socid);
+ // Thirdparty
+ $morehtmlref.=$langs->trans('ThirdParty') . ' : ';
+ if ($objsoc->id > 0) $morehtmlref.=$objsoc->getNomUrl(1);
+ else $morehtmlref.=$langs->trans("ContactNotLinkedToCompany");
+ }
+ $morehtmlref.=' ';
+
+ dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', $morehtmlref);
print '';
@@ -117,6 +129,7 @@ if ($object->id)
print '
| ||||||||