From b5247c3fa301d9328208f773f17ce3af02cbec9a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 22 Feb 2006 19:59:10 +0000 Subject: [PATCH] bugfix --- htdocs/categories/fiche.php | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index c47716c173b..3caa148ae3e 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -111,7 +111,7 @@ if ($user->rights->produit->creer) print $categorie->description.''; print ''; print $langs->trans("AddIn").' '; - print $html->select_nombre_sous_categorie($nbcats,"choix").' '; + print $html->select_nombre_sous_categorie($nbcats,"cats_meres").' '; print $langs->trans("categories"); print ''; print ''; @@ -135,15 +135,6 @@ if ($user->rights->produit->creer) print ''; print '
'; - //$categorie = new Categorie($db); - - //$categorie->label = $_REQUEST["nom"]; - //$categorie->description = $_REQUEST["description"]; - - //$cats_meres = isset($_REQUEST['cats_meres']) ? $_REQUEST['cats_meres'] : array(); - - //$res = $categorie->create(); - if ($_error == 3) { print '

'.$langs->trans("ImpossibleAddCat").' '.$categorie->label.'

'; @@ -151,17 +142,10 @@ if ($user->rights->produit->creer) else { print '

'.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").'

'; - - //foreach ($cats_meres as $id) - //{ - //$mere = new Categorie($db, $id); - //$res = $mere->add_fille($categorie); - - if ($_error == 2) - { - print '

'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').

'; - } - //} + if ($_error == 2) + { + print '

'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').

'; + } } print '
'; }