Skip to content

Commit

Permalink
Start to replace all $conf->entity by getEntity()
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Jul 24, 2014
1 parent b301c54 commit d2b2f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/categories/class/categorie.class.php
Expand Up @@ -84,7 +84,7 @@ function fetch($id,$label='')

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);
Expand Down

0 comments on commit d2b2f29

Please sign in to comment.