// fix add new product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9518 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1727,13 +1727,14 @@ if (false)
|
|||||||
throw new Exception('object not loaded');
|
throw new Exception('object not loaded');
|
||||||
$smarty = $this->context->smarty;
|
$smarty = $this->context->smarty;
|
||||||
$product_tabs = array();
|
$product_tabs = array();
|
||||||
foreach($this->available_tabs as $product_tab)
|
if(Tools::getValue('id_product'))
|
||||||
{
|
foreach($this->available_tabs as $product_tab)
|
||||||
$product_tabs[$product_tab] = array(
|
{
|
||||||
'name' => $product_tab,
|
$product_tabs[$product_tab] = array(
|
||||||
'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.Tools::getValue('id_product').'&action='.$product_tab,
|
'name' => $product_tab,
|
||||||
);
|
'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.Tools::getValue('id_product').'&action='.$product_tab,
|
||||||
}
|
);
|
||||||
|
}
|
||||||
$smarty->assign('product_tabs', $product_tabs);
|
$smarty->assign('product_tabs', $product_tabs);
|
||||||
|
|
||||||
if ($id_category_back = (int)(Tools::getValue('id_category')))
|
if ($id_category_back = (int)(Tools::getValue('id_category')))
|
||||||
|
|||||||
Reference in New Issue
Block a user