From fc68535f11215fe9d332729357750edae8ec2b5b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 25 Aug 2024 17:56:01 +0200 Subject: [PATCH] Widget : event fix date description , set interval to 14 days --- include/widget/event/event.php | 2 +- include/widget/event/install.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/widget/event/event.php b/include/widget/event/event.php index 63c43d410..0ec907878 100644 --- a/include/widget/event/event.php +++ b/include/widget/event/event.php @@ -52,7 +52,7 @@ class Event extends Widget 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()+interval '7 days','DDMMYYYY') + and to_char(ag_remind_date,'DDMMYYYY')<=to_char(now()+interval '14 days','DDMMYYYY') and ". \Follow_Up::sql_security_filter($this->db,'R') ." order by ag_remind_date asc"; $array=$this->db->get_array($sql); diff --git a/include/widget/event/install.php b/include/widget/event/install.php index 9120cf054..0bc67008e 100644 --- a/include/widget/event/install.php +++ b/include/widget/event/install.php @@ -26,7 +26,7 @@ global $cn; $cn->exec_sql("insert into widget_dashboard (wd_code,wd_description,wd_parameter,wd_name) values ($1,$2,$3,$4)", array ( 'event' - ,'Affiche les actions à venir et celles en retards' + ,'Affiche les actions dont la date limite est à moins de 14 jours ' ,0 ,'A faire' )