From 62300689f812350d1e48940fb48d50a8b62ef103 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 17 Jan 2021 15:59:04 +0100 Subject: [PATCH] Fix look and feel v13 --- htdocs/core/class/extrafields.class.php | 9 ++++----- htdocs/core/class/html.form.class.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 21db0656c0e..23b5c47e474 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1028,13 +1028,12 @@ class ExtraFields // search filter on a date extrafield shows two inputs to select a date range $prefill = array( 'start' => isset($value['start']) ? $value['start'] : '', - 'end' => isset($value['end']) ? $value['end'] : ''); + 'end' => isset($value['end']) ? $value['end'] : '' + ); $out = '
' - . $langs->trans('From') . ' ' - . $form->selectDate($prefill['start'], $keyprefix . $key . $keysuffix . '_start', 0, 0, 1) + . $form->selectDate($prefill['start'], $keyprefix.$key.$keysuffix.'_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans("From")) . '
' - . $langs->trans('to') . ' ' - . $form->selectDate($prefill['end'], $keyprefix . $key . $keysuffix . '_end', 0, 0, 1) + . $form->selectDate($prefill['end'], $keyprefix.$key.$keysuffix.'_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans("to")) . '
'; } else { // TODO Must also support $moreparam diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 11b654e9ef3..51aaa132c0e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5765,7 +5765,7 @@ class Form $retstring .= '
'; $retstring .= 'trans("FormatDateShortJavaInput").'\'); "'; // FormatDateShortInput for dol_print_date / FormatDateShortJavaInput that is same for javascript $retstring .= '>';