Nouvelle gestion d'erreur
This commit is contained in:
parent
bd87d68e83
commit
f76433bd7a
@ -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"];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user