From bfccefd66c469ca9d7242ba3d0138f80d383fa4d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 18:36:10 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20possibilit=E9=20de=20cr=E9er=20des=20sou?= =?UTF-8?q?s=20cat=E9gories=20ayant=20le=20m=EAme=20nom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/create.php b/htdocs/categories/create.php index 2d4e2428b97..9c1bb7658ba 100644 --- a/htdocs/categories/create.php +++ b/htdocs/categories/create.php @@ -139,7 +139,7 @@ print ''; echo "

".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"

"; $OK = false; } - else if ($c->already_exists($_POST["nom"])) // on regarde si le nom n'existe pas déjà en tant que catégorie ou sous-catégorie + else if ($c->already_exists($_POST["nom"],$_POST["catsMeres"]) // on regarde si le nom n'existe pas déjà en tant que catégorie ou sous-catégorie { echo "

".$langs->trans ("ErrCatAlreadyExists")."

"; $OK = false;