diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 42c5ea0d2a9..8e19e632817 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -432,7 +432,7 @@ if ((!empty($conf->service->enabled) || ($object->element == 'contrat')) && $dat { $lastline = $object->lines[$i]; - if($lastline->product_type == Product::TYPE_SERVICE && (! empty($lastline->date_start) || ! empty($lastline->date_end))) + if ($lastline->product_type == Product::TYPE_SERVICE && (! empty($lastline->date_start) || ! empty($lastline->date_end))) { $date_start_prefill = $lastline->date_start; $date_end_prefill = $lastline->date_end;