diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 2e0335a9bde..058f7e2e1ff 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -185,7 +185,7 @@ if($action == 'order') { } $i++; } - if(!$fail) { + if(!$fail && $id) { setEventMessage($langs->trans('OrderCreated'), 'mesgs'); } }