// Fix bug in AdminProductsController
This commit is contained in:
1 parent
69ac10f7df
commit
d3db9d0808
1 file changed
+3
@@ -1650,6 +1650,8 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
self::$currentIndex .= '&id_category='.$id_category;
|
self::$currentIndex .= '&id_category='.$id_category;
|
||||||
$this->getList($this->context->language->id, !$this->context->cookie->__get($this->table.'Orderby') ? 'position' : null, !$this->context->cookie->__get($this->table.'Orderway') ? 'ASC' : null, 0, null, $this->context->shop->getID(true));
|
$this->getList($this->context->language->id, !$this->context->cookie->__get($this->table.'Orderby') ? 'position' : null, !$this->context->cookie->__get($this->table.'Orderway') ? 'ASC' : null, 0, null, $this->context->shop->getID(true));
|
||||||
|
|
||||||
|
if (!empty($this->_list))
|
||||||
|
{
|
||||||
$id_category = Tools::getValue('id_category', 1);
|
$id_category = Tools::getValue('id_category', 1);
|
||||||
if (!$id_category)
|
if (!$id_category)
|
||||||
$id_category = 1;
|
$id_category = 1;
|
||||||
@@ -1683,6 +1685,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
// used to build the new url when changing category
|
// used to build the new url when changing category
|
||||||
$this->tpl_list_vars['base_url'] = preg_replace('#&id_category=[0-9]*#', '', self::$currentIndex).'&token='.$this->token;
|
$this->tpl_list_vars['base_url'] = preg_replace('#&id_category=[0-9]*#', '', self::$currentIndex).'&token='.$this->token;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// @todo module free
|
// @todo module free
|
||||||
$this->tpl_form_vars['vat_number'] = file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php');
|
$this->tpl_form_vars['vat_number'] = file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php');
|
||||||
parent::initContent();
|
parent::initContent();
|
||||||
|
|||||||
Reference in new issue
Block a user