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 '
| ';
- //$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 ' |