Fix: dplacement du message d'erreur si rfrence dj existante

This commit is contained in:
Regis Houssin 2006-07-19 12:22:08 +00:00
parent 12829edac3
commit 83222a3ae2

View File

@ -388,8 +388,6 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
{
$product = new Product($db);
if ($mesg) print "$mesg\n";
if ($_error == 1)
{
$product = $e_product;
@ -397,6 +395,8 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
llxHeader("","",$langs->trans("CardProduct".$product->type));
if ($mesg) print "$mesg\n";
print '<form action="fiche.php" method="post">';
print '<input type="hidden" name="action" value="add">';
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";