diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 6fb297e5684..2cb01a94a92 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -2021,7 +2021,9 @@ class Contrat extends CommonObject $text .= ($mode == 7 ? '' : ''); $text .= ($mode != 7 || $this->nbofservicesclosed > 0) ? ($this->nbofservicesclosed.ContratLigne::LibStatut(5, 3, -1, 'class="marginleft2"')) : ''; $text .= ($mode == 7 ? '' : ''); - $text .= $this->signed_status != '' ? ' '.$this->getLibSignedStatus(5) : ''; + if (getDolGlobalString('CONTRACT_SHOW_SIGNATURE_STATUS_WITH_SERVICE_STATUS')) { + $text .= is_null($this->signed_status) ? '' : ' '.$this->getLibSignedStatus(5); + } return $text; } else { return dolGetStatus($this->labelStatus[$status], $this->labelStatusShort[$status], '', $statusType, $mode); diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index f07554ad600..867f556df03 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -876,7 +876,7 @@ class Fichinter extends CommonObject */ public function getTooltipContentArray($params) { - global $conf, $langs; + global $langs; $langs->load('interventions');