diff --git a/include/class_follow_up.php b/include/class_follow_up.php index 3e6befb58..c19ef099d 100644 --- a/include/class_follow_up.php +++ b/include/class_follow_up.php @@ -1035,7 +1035,7 @@ class Follow_Up $sql = "select coalesce(vw_name,'Interne') as vw_name,ag_id,ag_title,ag_ref, dt_value,to_char(ag_timestamp,'DD.MM.YYYY') as ag_timestamp_fmt,ag_timestamp " . " from action_gestion join document_type " . " on (ag_type=dt_id) left join vw_fiche_attr on (f_id=f_id_dest) where ag_state not in (1,4) - and to_char(ag_remind_date,'DDMMYYYY')<=to_char(now(),'DDMMYYYY') "; + and ag_remind_date > trunc (now()) "; $array = $this->db->get_array($sql); return $array; }