From a0fe8e48849db6f5eacd552d89e30fb2a388e645 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Sep 2024 15:55:20 +0200 Subject: [PATCH] Add constant for the moment --- htdocs/contrat/class/contrat.class.php | 4 +++- htdocs/fichinter/class/fichinter.class.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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');