From 2b528c1385b77782d97a8d84da021f7daf1d9863 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Oct 2024 14:30:20 +0200 Subject: [PATCH] Fix missing links --- htdocs/contrat/agenda.php | 2 +- htdocs/contrat/card.php | 2 +- htdocs/contrat/contact.php | 3 +++ htdocs/contrat/document.php | 2 +- htdocs/contrat/note.php | 3 +++ 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/contrat/agenda.php b/htdocs/contrat/agenda.php index 1ab24f2c28c..8731ffa4354 100644 --- a/htdocs/contrat/agenda.php +++ b/htdocs/contrat/agenda.php @@ -187,7 +187,7 @@ if ($object->id > 0) { // Thirdparty $morehtmlref .= '
'.$object->thirdparty->getNomUrl(1); if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { - $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; + $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; } // Project if (isModEnabled('project')) { diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 5fb5b367606..5539666bace 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -1471,7 +1471,7 @@ if ($action == 'create') { // Thirdparty $morehtmlref .= '
'.$object->thirdparty->getNomUrl(1); if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { - $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; + $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; } // Project if (isModEnabled('project')) { diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php index 0cfb9dc306b..2f22275e00d 100644 --- a/htdocs/contrat/contact.php +++ b/htdocs/contrat/contact.php @@ -171,6 +171,9 @@ if ($id > 0 || !empty($ref)) { $morehtmlref .= $form->editfieldval("RefSupplier", 'ref_supplier', $object->ref_supplier, $object, 0, 'string', '', null, null, '', 1, 'getFormatedSupplierRef'); // Thirdparty $morehtmlref .= '
'.$object->thirdparty->getNomUrl(1); + if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { + $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; + } // Project if (isModEnabled('project')) { $langs->load("projects"); diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php index 2d4a02ada5d..8b4ad585937 100644 --- a/htdocs/contrat/document.php +++ b/htdocs/contrat/document.php @@ -145,7 +145,7 @@ if ($object->id) { // Thirdparty $morehtmlref .= '
'.$object->thirdparty->getNomUrl(1); if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { - $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; + $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; } // Project if (isModEnabled('project')) { diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php index 76d0d6cb6cc..d201a21f12b 100644 --- a/htdocs/contrat/note.php +++ b/htdocs/contrat/note.php @@ -116,6 +116,9 @@ if ($id > 0 || !empty($ref)) { $morehtmlref .= $form->editfieldval("RefSupplier", 'ref_supplier', $object->ref_supplier, $object, 0, 'string', '', null, null, '', 1, 'getFormatedSupplierRef'); // Thirdparty $morehtmlref .= '
'.$object->thirdparty->getNomUrl(1); + if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { + $morehtmlref .= ' ('.$langs->trans("OtherContracts").')'; + } // Project if (isModEnabled('project')) { $langs->load("projects");