diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 56d0a3d69e7..3b84c438822 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1451,7 +1451,15 @@ class Form $htmltoenteralink .= ''; } $htmltoenteralink .= ''; - $htmltoenteralink .= ''; + $htmltoenteralink .= ''; + if (!$alreadylinked) { + $htmltoenteralink .= ''; + } + $htmltoenteralink .= ''; $htmltoenteralink .= '' . (!empty($objp->ref_client) ? $objp->ref_client : (!empty($objp->ref_supplier) ? $objp->ref_supplier : '')) . ''; $htmltoenteralink .= ''; if ($possiblelink['label'] == 'LinkToContract') {