Fix: bug #32920 : Commercial -> Customers area (missing customer and suppliers name
This commit is contained in:
parent
8cbdcb9c20
commit
5b74a5aa9a
@ -815,14 +815,14 @@ class Societe extends CommonObject
|
|||||||
dol_syslog("Societe::Delete erreur -1 ".$this->error, LOG_ERR);
|
dol_syslog("Societe::Delete erreur -1 ".$this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($haschild > 0)
|
if ($haschild > 0)
|
||||||
{
|
{
|
||||||
$this->error="ErrorRecordHasChildren";
|
$this->error="ErrorRecordHasChildren";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($this->db->begin())
|
if ($this->db->begin())
|
||||||
{
|
{
|
||||||
// Added by Matelli (see http://matelli.fr/showcases/patchs-dolibarr/fix-third-party-deleting.html)
|
// Added by Matelli (see http://matelli.fr/showcases/patchs-dolibarr/fix-third-party-deleting.html)
|
||||||
@ -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