From 942246a36ca770bfcf5d5d1fafef4c6d601f43fd Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 28 Feb 2012 14:27:08 +0000 Subject: [PATCH] [-] BO : BugFix : #PSFV-585 : New Customer Groups can't see the root categories --- classes/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Category.php b/classes/Category.php index fbbb1fea0..ca5d6e614 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -1109,7 +1109,7 @@ class CategoryCore extends ObjectModel return false; return Db::getInstance()->execute(' INSERT INTO `'._DB_PREFIX_.'category_group` - VALUES (1, '.(int)$id_group.') + VALUES ('.(int)Context::getContext()->shop->getCategory().', '.(int)$id_group.') '); }