fix: possibilité de créer des sous catégories ayant le même nom

This commit is contained in:
Regis Houssin 2006-02-20 18:36:10 +00:00
parent d310af3f56
commit bfccefd66c

View File

@ -139,7 +139,7 @@ print '<tr><td valign="top" width="30%">';
echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"</p>"; echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"</p>";
$OK = false; $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 "<p>".$langs->trans ("ErrCatAlreadyExists")."</p>"; echo "<p>".$langs->trans ("ErrCatAlreadyExists")."</p>";
$OK = false; $OK = false;