diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php
index 616bc982195..691b4f413f4 100644
--- a/htdocs/product/categorie.php
+++ b/htdocs/product/categorie.php
@@ -51,7 +51,7 @@ if ($_GET["id"] || $_GET["ref"])
if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
}
-
+$html = new Form($db);
llxHeader("","",$langs->trans("CardProduct0"));
@@ -69,9 +69,9 @@ if ($_GET["id"] || $_GET["ref"])
}
//on veut ajouter une catégorie
- if (isset($_REQUEST["add_cat"]) && $_REQUEST["add_cat"]>=0)
+ if (isset($_REQUEST["catMere"]) && $_REQUEST["catMere"]>=0)
{
- $cat = new Categorie($db,$_REQUEST["add_cat"]);
+ $cat = new Categorie($db,$_REQUEST["catMere"]);
$cat->add_product($product);
}
@@ -170,18 +170,10 @@ if ($_GET["id"] || $_GET["ref"])
print '
';
// Formulaire ajout dans une categorie
- print $langs->trans("AddProductToCat")."
";
print '