// Fix bug in AdminProductsController

This commit is contained in:
lLefevre
2011-11-23 16:49:15 +00:00
parent 69ac10f7df
commit d3db9d0808
2 changed files with 36 additions and 33 deletions
+2 -2
View File
@@ -220,9 +220,9 @@
{if $display_header && $is_multishop && $shop_context != 'all'} {if $display_header && $is_multishop && $shop_context != 'all'}
<div class="multishop_info"> <div class="multishop_info">
{if $shop_context == 'group'} {if $shop_context == 'group'}
{l s='You are configuring your store for group shop'} <b>{$group_shop->name}</b> {l s='You are configuring your store for group shop'} <b> {$group_shop->name}</b>
{elseif $shop_context == 'shop'} {elseif $shop_context == 'shop'}
{l s='You are configuring your store for shop'} <b>{$shop->name}</b> {l s='You are configuring your store for shop'} <b> {$shop->name}</b>
{/if} {/if}
</div> </div>
{/if} {/if}
@@ -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();