From 72afadb84ec998f488d3a937a94a61db2897f9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 12 Jun 2013 12:01:22 +0200 Subject: [PATCH] fixed success message showing up even when you don't create orders --- htdocs/product/stock/replenish.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }