From 4d7feeb311d66ee20cb0ee18d86a1c8713cd52d6 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 31 Mar 2006 15:29:39 +0000 Subject: [PATCH] bugfix --- htdocs/includes/boxes/box_services_vendus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/boxes/box_services_vendus.php b/htdocs/includes/boxes/box_services_vendus.php index 4e0f3317f15..a886f3e3982 100644 --- a/htdocs/includes/boxes/box_services_vendus.php +++ b/htdocs/includes/boxes/box_services_vendus.php @@ -72,14 +72,14 @@ class box_services_vendus extends ModeleBoxes { if ($conf->categorie->enabled && !$user->rights->categorie->voir) { $sql .= ", ".MAIN_DB_PREFIX."categorie_product as cp"; - $sql .= ", ".MAIN_DB_PREFIX."categorie as c"; + $sql .= ", ".MAIN_DB_PREFIX."categorie as ca"; } $sql .= " WHERE s.idp = c.fk_soc AND c.rowid = cd.fk_contrat AND cd.fk_product = p.rowid"; if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= " AND s.idp = sc.fk_soc AND sc.fk_user = " .$user->id; if ($conf->categorie->enabled && !$user->rights->categorie->voir) { $sql .= " AND cp.fk_product = p.rowid"; - $sql .= " AND cp.fk_categorie = c.rowid AND c.visible = 1"; + $sql .= " AND cp.fk_categorie = ca.rowid AND ca.visible = 1"; } if($user->societe_id) {