Start to replace all $conf->entity by getEntity()
This commit is contained in:
parent
b301c54b7e
commit
d2b2f29e4b
@ -84,7 +84,7 @@ class Categorie extends CommonObject
|
||||
|
||||
else
|
||||
{
|
||||
if ($label) $sql.= " WHERE label = '".$this->db->escape($label)."' AND entity=".$conf->entity;;
|
||||
if ($label) $sql.= " WHERE label = '".$this->db->escape($label)."' AND entity IN (".getEntity('category',1).")";
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::fetch sql=".$sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user