Nouvelle gestion d'erreur

This commit is contained in:
Rodolphe Quiedeville 2007-01-04 15:15:41 +00:00
parent bd87d68e83
commit f76433bd7a

View File

@ -122,7 +122,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer)
} }
else else
{ {
$mesg='<div class="error">'.$product->error.'</div>'; $mesg='<div class="error">'.$langs->trans($product->error()).'</div>';
$_GET["action"] = "create"; $_GET["action"] = "create";
$_GET["canvas"] = $product->canvas; $_GET["canvas"] = $product->canvas;
$_GET["type"] = $_POST["type"]; $_GET["type"] = $_POST["type"];