FIX : lien cliquable tiers

This commit is contained in:
Adrien Raze 2020-08-28 16:59:50 +02:00
parent 281b52db75
commit 343b39e31f

View File

@ -147,16 +147,16 @@ class box_validated_projects extends ModeleBoxes
'asis' => 1 'asis' => 1
); );
$sql = 'SELECT nom FROM '.MAIN_DB_PREFIX.'societe WHERE rowid ='.$objp->Client; $sql = 'SELECT rowid, nom FROM '.MAIN_DB_PREFIX.'societe WHERE rowid ='.$objp->Client;
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql){ if ($resql){
$socstatic = new Societe($this->db); $socstatic = new Societe($this->db);
$obj = $this->db->fetch_object($resql); $obj = $this->db->fetch_object($resql);
$socstatic->nom = $obj->nom;
$this->info_box_contents[$i][] = array( $this->info_box_contents[$i][] = array(
'td' => 'class="tdoverflowmax150 maxwidth200onsmartphone"', 'td' => 'class="tdoverflowmax150 maxwidth200onsmartphone"',
'text' => $socstatic->getNomUrl(1), 'text' => $obj->nom,
'asis' => 1 'asis' => 1,
'url' => DOL_URL_ROOT.'/societe/card.php?socid='.$obj->rowid
); );
} }
else { else {