Fix: bug #32920 : Commercial -> Customers area (missing customer and suppliers name
This commit is contained in:
parent
8cbdcb9c20
commit
5b74a5aa9a
@ -1340,9 +1340,12 @@ class Societe extends CommonObject
|
|||||||
$lien.=(!empty($this->canvas)?'&canvas='.$this->canvas:'').'">';
|
$lien.=(!empty($this->canvas)?'&canvas='.$this->canvas:'').'">';
|
||||||
$lienfin='</a>';
|
$lienfin='</a>';
|
||||||
|
|
||||||
if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$this->nom,'company').$lienfin);
|
$name=$this->name;
|
||||||
|
if (empty($name)) $name=$this->nom;
|
||||||
|
|
||||||
|
if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$name,'company').$lienfin);
|
||||||
if ($withpicto && $withpicto != 2) $result.=' ';
|
if ($withpicto && $withpicto != 2) $result.=' ';
|
||||||
$result.=$lien.($maxlen?dol_trunc($this->nom,$maxlen):$this->nom).$lienfin;
|
$result.=$lien.($maxlen?dol_trunc($name,$maxlen):$name).$lienfin;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user