@@ -135,14 +135,14 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
...
@@ -135,14 +135,14 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
if(empty($reshook))
if(empty($reshook))
{
{
if(GETPOST('cancel'))$action='';
if(GETPOST('cancel'))$action='';
// Set note
// Set note
includeDOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php';// Must be include, not include_once
includeDOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php';// Must be include, not include_once
includeDOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php';// Must be include, not include_once
includeDOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php';// Must be include, not include_once
includeDOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php';// Must be include, not include_once
includeDOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php';// Must be include, not include_once
// Do we click on purge search criteria ?
// Do we click on purge search criteria ?
if(GETPOST("button_removefilter_x")||GETPOST("button_removefilter.x")||GETPOST("button_removefilter"))// All test are required to be compatible with all browsers
if(GETPOST("button_removefilter_x")||GETPOST("button_removefilter.x")||GETPOST("button_removefilter"))// All test are required to be compatible with all browsers
if($search_frequency=='1')$sql.=' AND f.frequency > 0';
if($search_frequency=='1')$sql.=' AND f.frequency > 0';
if($search_frequency=='0')$sql.=' AND (f.frequency IS NULL or f.frequency = 0)';
if($search_frequency=='0')$sql.=' AND (f.frequency IS NULL or f.frequency = 0)';
if($month>0)
if($month>0)
{
{
if($year>0&&empty($day))
if($year>0&&empty($day))
...
@@ -1573,7 +1573,7 @@ else
...
@@ -1573,7 +1573,7 @@ else
elseif($year_date_when>0)
elseif($year_date_when>0)
{
{
$sql.=" AND f.date_when BETWEEN '".$db->idate(dol_get_first_day($year_date_when,1,false))."' AND '".$db->idate(dol_get_last_day($year_date_when,12,false))."'";
$sql.=" AND f.date_when BETWEEN '".$db->idate(dol_get_first_day($year_date_when,1,false))."' AND '".$db->idate(dol_get_last_day($year_date_when,12,false))."'";