Fix : widget event for next 14 days not showing events

This commit is contained in:
Dany wm DB 2025-02-16 22:23:03 +01:00 committed by sparkyx
parent 6f8efee919
commit fde7d62ac9

View file

@ -52,7 +52,7 @@ class Event extends Widget
left join vw_fiche_attr on (f_id=f_id_dest) left join vw_fiche_attr on (f_id=f_id_dest)
where where
ag_state not in (1,4) ag_state not in (1,4)
and to_char(ag_remind_date,'DDMMYYYY')<=to_char(now()+interval '14 days','DDMMYYYY') and to_char(ag_remind_date,'YYYYMMDD')<=to_char(now()+interval '14 days','YYYYMMDD')
and ". \Follow_Up::sql_security_filter($this->db,'R') and ". \Follow_Up::sql_security_filter($this->db,'R')
." order by ag_remind_date asc"; ." order by ag_remind_date asc";
$array=$this->db->get_array($sql); $array=$this->db->get_array($sql);