[-] BO : BugFix : #PSCFV-3142 : Admin Tracking displaying categories from other shops

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16670 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-08-02 15:49:55 +00:00
parent ae58669d4a
commit 49c1f7e870
@@ -90,6 +90,7 @@ class AdminTrackingControllerCore extends AdminController
'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'width' => 50)
));
$this->_join = Shop::addSqlAssociation('category', 'a');
$this->_filter = ' AND a.`id_category` NOT IN (
SELECT DISTINCT(cp.id_category)
FROM `'._DB_PREFIX_.'category_product` cp