[-] BO : #PSFV-610 - AdminTracking lists don't take care of PS_STOCK_MANAGEMENT value

This commit is contained in:
mDeflotte
2012-03-02 15:57:12 +00:00
parent c821a9b40d
commit f97985ab4e
2 changed files with 10 additions and 0 deletions
@@ -51,6 +51,9 @@ class AdminTrackingControllerCore extends AdminController
public function initContent()
{
if (!Configuration::get('PS_STOCK_MANAGEMENT'))
$this->warnings[] = $this->l('List of products without available quantities for sale are not displayed because stock management is disable.');
$methods = get_class_methods($this);
$tpl_vars['arrayList'] = array();
foreach ($methods as $method_name)
@@ -100,6 +103,9 @@ class AdminTrackingControllerCore extends AdminController
public function getCustomListProductsAttributesNoStock()
{
if (!Configuration::get('PS_STOCK_MANAGEMENT'))
return;
$this->clearListOptions();
$this->table = 'product';
$this->lang = true;
@@ -138,6 +144,9 @@ class AdminTrackingControllerCore extends AdminController
public function getCustomListProductsNoStock()
{
if (!Configuration::get('PS_STOCK_MANAGEMENT'))
return;
$this->clearListOptions();
$this->table = 'product';
$this->lang = true;