From 1410565b83a4a39cab1ffcbb5e7216275066125e Mon Sep 17 00:00:00 2001 From: antonin_tdj <50403308+ibuiv@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:55:31 +0200 Subject: [PATCH] Fix ref_client on Project Overview for propale The ref_customer in the propal object is name ref_client. I just added another check if nothing is found. --- htdocs/projet/element.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 1b002ba5688..23d72b18d4c 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -1259,6 +1259,10 @@ foreach ($listofreferent as $key => $value) { if (!empty($element->ref_customer)) { print ' - '.$element->ref_customer; } + // Compatibility propale + if (empty($element->ref_customer) && !empty($element->ref_client)){ + print ' - '.$element->ref_client; + } } print "\n";