From 1e7daa29a5f5fbe2a5ac8e96152dd2cc87e52d93 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 Jul 2020 01:46:50 +0200 Subject: [PATCH] Hide a useless option --- htdocs/product/stock/replenish.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index d5eeac44995..ff71f5f605c 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -689,7 +689,11 @@ if (!empty($conf->service->enabled) && $type == 1) print ''.$form->textwithpicto($langs->trans('IncludeEmptyDesiredStock'), $langs->trans('IncludeProductWithUndefinedAlerts')).' '; print ''; print ''.$langs->trans('AlertOnly').' '; -print ''.$langs->trans('IncludeAlsoDraftOrders').' '; +print ''; +if (! empty($conf->global->STOCK_REPLENISH_ADD_CHECKBOX_INCLUDE_DRAFT_ORDER)) { + print $langs->trans('IncludeAlsoDraftOrders').' '; +} +print ''; print ' '; // Fields from hook $parameters = array('param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);