This commit is contained in:
Laurent Destailleur 2021-05-07 15:11:28 +02:00
parent 3090c124f0
commit 1cf46f9ae9

View File

@ -1518,7 +1518,7 @@ class Societe extends CommonObject
$sql .= ' WHERE s.entity IN ('.getEntity($this->element).')';
if ($rowid) {
$sql .= ' AND s.rowid = '.$rowid;
$sql .= ' AND s.rowid = '.((int) $rowid);
}
if ($ref) {
$sql .= " AND s.nom = '".$this->db->escape($ref)."'";