diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 86126323522..43a36a1f53e 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -34,6 +34,7 @@ require('./pre.inc.php'); require_once(DOL_DOCUMENT_ROOT."/product.class.php"); $langs->load("other"); +$langs->load("products"); $user->getrights('produit'); @@ -81,7 +82,7 @@ if ($_POST["sendit"] && $conf->upload) -llxHeader(); +llxHeader("","",$langs->trans("CardProduct".$product->type)); if ($product->id) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index b1dec1ba74d..223250d93b1 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -314,8 +314,6 @@ if ($_POST["cancel"] == $langs->trans("Cancel")) } - -llxHeader("","",$langs->trans("ProductServiceCard")); $html = new Form($db); @@ -333,6 +331,8 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) $product = $e_product; } + llxHeader("","",$langs->trans("CardProduct".$product->type)); + print '