From d2b2f29e4bd458a34e6550f6fd072ccb6675bbd3 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Thu, 24 Jul 2014 09:01:47 +0200 Subject: [PATCH] Start to replace all $conf->entity by getEntity() --- htdocs/categories/class/categorie.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 8d2c4ceed4637..9bd5034a6d555 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -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);