// small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17752 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-04 13:19:44 +00:00
parent 55a1ad4b5e
commit 1b2d7faafb
@@ -98,7 +98,8 @@ class AdminTrackingControllerCore extends AdminController
'description' => array('title' => $this->l('Description')),
'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'width' => 50)
));
$this->clearFilters();
$this->_join = Shop::addSqlAssociation('category', 'a');
$this->_filter = ' AND a.`id_category` NOT IN (
SELECT DISTINCT(cp.id_category)
@@ -108,7 +109,7 @@ class AdminTrackingControllerCore extends AdminController
$this->tpl_list_vars = array('sub_title' => $this->l('List of empty categories:'));
$this->clearFilters();
return $this->renderList();
}
@@ -137,6 +138,9 @@ class AdminTrackingControllerCore extends AdminController
'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name'),
'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'width' => 50)
);
$this->clearFilters();
$this->_join = Shop::addSqlAssociation('product', 'a');
$this->_filter = 'AND a.id_product IN (
SELECT p.id_product
@@ -151,7 +155,7 @@ class AdminTrackingControllerCore extends AdminController
$this->tpl_list_vars = array('sub_title' => $this->l('List of products with attributes and without available quantities for sale:'));
$this->clearFilters();
return $this->renderList();
}
@@ -180,6 +184,8 @@ class AdminTrackingControllerCore extends AdminController
'name' => array('title' => $this->l('Name')),
'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'width' => 50)
);
$this->clearFilters();
$this->_join = Shop::addSqlAssociation('product', 'a');
$this->_filter = 'AND a.id_product IN (
SELECT p.id_product
@@ -194,8 +200,6 @@ class AdminTrackingControllerCore extends AdminController
$this->tpl_list_vars = array('sub_title' => $this->l('List of products without attributes and without available quantities for sale:'));
$this->clearFilters();
return $this->renderList();
}