Fix: Undo change. Code was correct.
This commit is contained in:
parent
c6dcc64471
commit
629767d696
@ -397,8 +397,6 @@ class CommonObject
|
|||||||
*/
|
*/
|
||||||
function getIdContact($source,$code,$status=0)
|
function getIdContact($source,$code,$status=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$result=array();
|
$result=array();
|
||||||
$i=0;
|
$i=0;
|
||||||
|
|
||||||
@ -412,7 +410,6 @@ class CommonObject
|
|||||||
$sql.= " AND tc.code = '".$code."'";
|
$sql.= " AND tc.code = '".$code."'";
|
||||||
$sql.= " AND tc.active = 1";
|
$sql.= " AND tc.active = 1";
|
||||||
if ($status) $sql.= " AND ec.statut = ".$status;
|
if ($status) $sql.= " AND ec.statut = ".$status;
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
|
||||||
|
|
||||||
dol_syslog("CommonObject::getIdContact sql=".$sql);
|
dol_syslog("CommonObject::getIdContact sql=".$sql);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user