diff --git a/htdocs/product/sousproduits/fiche.php b/htdocs/product/sousproduits/fiche.php index ba0f678c987..9d6281890e3 100644 --- a/htdocs/product/sousproduits/fiche.php +++ b/htdocs/product/sousproduits/fiche.php @@ -132,6 +132,9 @@ if ($cancel == $langs->trans("Cancel")) llxHeader("","",$langs->trans("CardProduct".$product->type)); $html = new Form($db); +$head=product_prepare_head($product, $user); +$titre=$langs->trans("CardProduct".$product->type); +dolibarr_fiche_head($head, 'subproduct', $titre); /* * Fiche produit @@ -147,10 +150,6 @@ if ($id || $ref) /* * En mode visu */ - $head=product_prepare_head($product, $user); - $titre=$langs->trans("CardProduct".$product->type); - dolibarr_fiche_head($head, 'subproduct', $titre); - print($mesg); @@ -271,7 +270,7 @@ if ($id || $ref) if($conf->categorie->enabled) { print ''.$langs->trans("CategoryFilter"); - print ''.$html->select_all_categories($catMere).''; + print ''.$html->select_all_categories(0,$catMere).''; } print '';