From c8aff2af1890c752a6267fcd5eb127ec94e31f9f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Jul 2023 20:05:24 +0200 Subject: [PATCH] Update list.php --- htdocs/ticket/list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php index cc69d923909..89550402515 100644 --- a/htdocs/ticket/list.php +++ b/htdocs/ticket/list.php @@ -113,8 +113,9 @@ $search = array(); foreach ($object->fields as $key => $val) { if (GETPOST('search_'.$key, 'alpha') !== '') { $search[$key] = GETPOST('search_'.$key, 'alpha'); - } else + } else { $search[$key] = ""; + } if (preg_match('/^(date|timestamp|datetime)/', $val['type'])) { $search[$key.'_dtstart'] = dol_mktime(0, 0, 0, GETPOST('search_'.$key.'_dtstartmonth', 'int'), GETPOST('search_'.$key.'_dtstartday', 'int'), GETPOST('search_'.$key.'_dtstartyear', 'int')); $search[$key.'_dtend'] = dol_mktime(23, 59, 59, GETPOST('search_'.$key.'_dtendmonth', 'int'), GETPOST('search_'.$key.'_dtendday', 'int'), GETPOST('search_'.$key.'_dtendyear', 'int'));