From cc8057d345275ff06b3390fb7776ad5520c9225e Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Mon, 24 Oct 2011 08:28:15 +0000 Subject: [PATCH] // fix create new product --- admin-dev/themes/template/products/content.tpl | 4 ++++ controllers/admin/AdminProductsController.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/admin-dev/themes/template/products/content.tpl b/admin-dev/themes/template/products/content.tpl index f6e83677c..8ab5e53b7 100644 --- a/admin-dev/themes/template/products/content.tpl +++ b/admin-dev/themes/template/products/content.tpl @@ -187,11 +187,15 @@ $(document).ready(function(){
+ {if !$newproduct} {foreach $product_tabs key=numStep item=tab}
{if $tab.selected}{$content}{/if}
{/foreach} + {else}{* @todo : this is a temporary fix*} +
{$content}
+ {/if}
diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index feb4f5442..74033dbd3 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -1756,6 +1756,8 @@ if (false) ); } } + else + $smarty->assign('newproduct', 1); $smarty->assign('product_tabs', $product_tabs);