Documentation

This commit is contained in:
sparkyx 2024-08-18 22:42:39 +02:00
parent 9d1f7bf29d
commit 7828333c02
3 changed files with 8 additions and 7 deletions

View file

@ -313,8 +313,8 @@ class Calendar
return $ret;
}
/**
* Display the next events for 30 days
* todo list + action to remind
* @brief Display the next events for 30 days
* @todo todo list + action to remind
*/
function zoom_list($notitle)
{
@ -323,7 +323,8 @@ class Calendar
$profile=$g_user->get_profile();
// Get the event from now and before 30 before
// union the TODO list
$sql = "
select ag_id,ag_remind_date,to_char(ag_remind_date,'DD.MM.YY') as str_date,ag_title,ag_hour,
coalesce(name,'interne') as str_name,
@ -334,9 +335,8 @@ class Calendar
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
ag_dest in (select p_granted from user_sec_action_profile where p_id =$1)
and ag_state IN (2, 3)
where ag_dest in (select p_granted from user_sec_action_profile where p_id =$1)
and ag_state IN (2, 3)
and ag_remind_date is not null
order by ag_remind_date,ag_hour
";

View file

@ -1496,6 +1496,7 @@ class Noalyss_User
*/
function can_add_action($p_profile)
{
$r=$this->db->get_value(' select count(*)
from user_sec_action_profile
where p_granted=$2