diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 54acb881f74..34a3d367f76 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -48,7 +48,7 @@ $html = new Form($db); /* * Action création de la catégorie */ -if ($_GET["action"] == 'create' && $user->rights->produit->creer) +if (($_GET["action"] == 'create' && $user->rights->produit->creer) || $_POST["action"] == 'choicenbcats') { print '
'; print ''; @@ -74,12 +74,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print ''; print ''; print ''; - - if ($_GET["action"] == 'create' || $_POST["action"] == 'choicenbcats') - { - print $html->select_all_categories($nbcats); - } - + print $html->select_all_categories($nbcats); print ''; print ''; print '
';