From ac02020f77dc1ce527a7a5e5eabbdca68ebdd02f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 22 Feb 2006 15:30:46 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20restructuration=20du=20code=20des=20c?= =?UTF-8?q?at=E9gories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/fiche.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 02a696f5b11..54acb881f74 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -72,11 +72,16 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print $html->select_nombre_sous_categorie($nbcats,"choix").' '; print $langs->trans("categories"); print ''; - print ''; + print ''; print ''; - print $html->select_all_categories($nbcats); + + if ($_GET["action"] == 'create' || $_POST["action"] == 'choicenbcats') + { + print $html->select_all_categories($nbcats); + } + print ''; - print ''; + print ''; print '';