Merge pull request #3956 from frederic34/patch-3

Update product.php
This commit is contained in:
Laurent Destailleur 2015-11-11 15:51:09 +01:00
commit 4ddfa6e1b5

View File

@ -174,7 +174,7 @@ if ($action == "correct_stock" && ! $cancel)
} }
else else
{ {
setEventMessage($object->error,'errors'); setEventMessages($object->error, $object->errors, 'errors');
$action='correction'; $action='correction';
} }
} }
@ -198,7 +198,7 @@ if ($action == "transfert_stock" && ! $cancel)
} }
if (GETPOST("id_entrepot_source",'int') == GETPOST("id_entrepot_destination",'int')) if (GETPOST("id_entrepot_source",'int') == GETPOST("id_entrepot_destination",'int'))
{ {
setEventMessage($langs->trans("ErrorSrcAndTargetWarehouseMustDiffers"), 'errors'); setEventMessages($langs->trans("ErrorSrcAndTargetWarehouseMustDiffers"), null, 'errors');
$error++; $error++;
$action='transfert'; $action='transfert';
} }