From 267e15011862e1c195a2442a22c2ffd35824d4b9 Mon Sep 17 00:00:00 2001 From: atm-steve <85500090+atm-steve@users.noreply.github.com> Date: Wed, 22 Jun 2022 14:10:47 +0200 Subject: [PATCH] Update objectline_create.tpl.php --- htdocs/core/tpl/objectline_create.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 37cc7f94ce8..d88c416f29e 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -348,7 +348,7 @@ if ($nolinesbefore) { if (!empty($conf->service->enabled) && ($object->element == 'facturerec' || $object->element == 'invoice_supplier_rec')) { echo '

'; echo $langs->trans('AutoFillDateFrom').' '; - if ($conf->global->INVOICE_REC_DATE_TO_YES) { + if (!empty($conf->global->INVOICE_REC_DATE_TO_YES)) { $line->date_start_fill = 1; $line->date_end_fill = 1; }