From 334cdbc2f5c0d8e269a90298fe86692dc1e0bc0b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 30 Mar 2016 11:13:29 +0200 Subject: [PATCH] NEW Option MAIN_LIST_FILTER_ON_DAY is supported on proposal list --- htdocs/comm/propal/list.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index 74ac2fdd7ea..9e7e3074d33 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -64,8 +64,9 @@ $object_statut=GETPOST('propal_statut'); $sall=GETPOST("sall"); $mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg")); -$year=GETPOST("year"); -$month=GETPOST("month"); +$day=GETPOST("day","int"); +$year=GETPOST("year","int"); +$month=GETPOST("month","int"); $limit = GETPOST("limit")?GETPOST("limit","int"):$conf->liste_limit; $sortfield = GETPOST("sortfield",'alpha'); @@ -109,6 +110,7 @@ if (GETPOST("button_removefilter") || GETPOST("button_removefilter_x")) // Both $search_town=''; $year=''; $month=''; + $day=''; $viewstatut=''; $object_statut=''; } @@ -349,6 +351,7 @@ if ($result) // Date print ''; //print $langs->trans('Month').': '; + if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ''; print ''; //print ' '.$langs->trans('Year').': '; $syear = $year;