[-] BO : fixed bug #PSCFV-3724 - fixed bug with "Save and Stay" on product page with DisplayAdminProductsExtra

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17100 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-08-30 15:05:08 +00:00
parent af6cf4ba34
commit a9b20ea99b
@@ -2053,7 +2053,7 @@ class AdminProductsControllerCore extends AdminController
// Check if Module
if (substr($this->tab_display, 0, 6) == 'Module')
{
$this->tab_display = 'Module';
$this->tab_display = 'Modules';
$this->tab_display_module = strtolower(substr($this->tab_display, 6, strlen($this->tab_display) - 6));
}
@@ -2076,7 +2076,7 @@ class AdminProductsControllerCore extends AdminController
$product_tabs[$product_tab] = array(
'id' => $product_tab,
'selected' => (strtolower($product_tab) == strtolower($this->tab_display)),
'selected' => (strtolower($product_tab) == strtolower($this->tab_display) || (substr($this->tab_display, 0, 6) == 'Module')),
'name' => $this->available_tabs_lang[$product_tab],
'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)Tools::getValue('id_product').'&action='.$product_tab,
);