diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index b0a2184eb2a..5a92116d44e 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -421,7 +421,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) } } - $product->assign_smarty_values($smarty); + $product->assign_smarty_values($smarty, 'create'); if ($_error == 1) { @@ -599,7 +599,7 @@ if ($_GET["id"] || $_GET["ref"]) $smarty->template_dir = DOL_DOCUMENT_ROOT.'/product/canvas/'.$product->canvas.'/'; - $product->assign_smarty_values($smarty); + $product->assign_smarty_values($smarty,$_GET["action"]); } else {