diff --git a/include/class_calendar.php b/include/class_calendar.php index e2c43bb8b..5903ed25a 100644 --- a/include/class_calendar.php +++ b/include/class_calendar.php @@ -303,7 +303,8 @@ class Calendar case when ag_remind_date < now() then 'R' when ag_remind_date = now() then 'N' else 'F' - end as status + end as status, + coalesce (ag_remind_date::date,current_date) - current_date as delta_days from action_gestion left join vw_fiche_name on (f_id=f_id_dest) where diff --git a/include/template/calendar-list.php b/include/template/calendar-list.php index e700f0c0a..252b0b316 100644 --- a/include/template/calendar-list.php +++ b/include/template/calendar-list.php @@ -46,6 +46,7 @@