diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 39c202065b9..261e864163c 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -363,7 +363,7 @@ else if ($action == 'confirm_valid' && $confirm == 'yes' && $user->rights->factu if (! $idwarehouse || $idwarehouse == -1) { $error++; - $mesgs[]=$langs->trans('ErrorFieldRequired',$langs->transnoentitiesnoconv("Warehouse")); + setEventMessage($langs->trans('ErrorFieldRequired',$langs->transnoentitiesnoconv("Warehouse")),'errors'); $action=''; } }