From d8c6e17efd0159f1595ccef86fd82aed1524875c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 14 Aug 2020 11:59:51 +0200 Subject: [PATCH] Fix travis --- htdocs/core/tpl/objectline_create.tpl.php | 8 ++++---- htdocs/product/stock/list.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 305be25347d..42c5ea0d2a9 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -426,9 +426,9 @@ if ((!empty($conf->service->enabled) || ($object->element == 'contrat')) && $dat $prefillDates = false; - if(! empty($conf->global->MAIN_FILL_SERVICE_DATES_FROM_LAST_SERVICE_LINE) && ! empty($object->lines)) + if (!empty($conf->global->MAIN_FILL_SERVICE_DATES_FROM_LAST_SERVICE_LINE) && ! empty($object->lines)) { - for($i = count($object->lines) - 1; $i >= 0; $i--) + for ($i = count($object->lines) - 1; $i >= 0; $i--) { $lastline = $object->lines[$i]; @@ -457,14 +457,14 @@ if ((!empty($conf->service->enabled) || ($object->element == 'contrat')) && $dat print $form->selectDate($date_end, 'date_end', empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, 1, "addproduct", 1, 0); }; - if($prefillDates) + if ($prefillDates) { echo ' ' . $langs->trans('FillWithLastServiceDates') . ''; } print '