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; }