diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 5e38198ab60..83cb7309c35 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -382,10 +382,10 @@ if ($resql) $event->type_code=$obj->code; $event->libelle=$obj->label; $event->percentage=$obj->percent; - $event->author->id=$obj->fk_user_author; - $event->usertodo->id=$obj->fk_user_action; - $event->userdone->id=$obj->fk_user_done; - + $event->author->id=$obj->fk_user_author; // user id of creator + $event->usertodo->id=$obj->fk_user_action; // user id of owner + $event->userdone->id=$obj->fk_user_done; // deprecated + // $event->userstodo=... with s after user, in future version, will be an array with all id of user assigned to event $event->priority=$obj->priority; $event->fulldayevent=$obj->fulldayevent; $event->location=$obj->location; @@ -1009,6 +1009,11 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa || (! empty($event->userdone->id) && $event->userdone->id == $user->id)) { $nummytasks++; $cssclass='family_mytasks'; + // TODO Set a color using user color + // Must defined rule to choose color of who to use. + // event->usertodo->id will still contains user id of owner + // event->userstodo will be an array in future. + // $color=$user->color; } else if ($event->type_code == 'ICALEVENT') { diff --git a/htdocs/install/mysql/tables/llx_actioncomm.sql b/htdocs/install/mysql/tables/llx_actioncomm.sql index 275abc53370..ea70aa02385 100644 --- a/htdocs/install/mysql/tables/llx_actioncomm.sql +++ b/htdocs/install/mysql/tables/llx_actioncomm.sql @@ -32,21 +32,23 @@ create table llx_actioncomm fk_action integer, -- type of action (optionnal link with llx_c_actioncomm or null) code varchar(32) NULL, -- code of action for automatic action - label varchar(128) NOT NULL, -- libelle de l'action + label varchar(128) NOT NULL, -- label/title of event datec datetime, -- date creation - tms timestamp, -- date modif - fk_user_author integer, -- id user qui a cree l'action - fk_user_mod integer, -- id dernier user qui a modifier l'action + tms timestamp, -- date modification + fk_user_author integer, -- user id of user that has created record + fk_user_mod integer, -- user id of user that has modified record fk_project integer, fk_soc integer, fk_contact integer, fk_parent integer NOT NULL default 0, - fk_user_action integer, -- id de la personne qui doit effectuer l'action - transparency integer, -- transparency (ical standard). used to say if people assigned to event are busy or not by event. - fk_user_done integer, -- id de la personne qui a effectue l'action + fk_user_action integer, -- user id of owner of action (currently also user id of actor that must do action. In future, actors assigned to action will be an array into table llx_actioncomm_actors) + + transparency integer, -- transparency (ical standard). used to say if people assigned to event are busy or not by event (in future version, this field is deprecated and will be stored into table llx_actioncomm_actors) + fk_user_done integer, -- user id of people that has made action (deprecated) + priority smallint, fulldayevent smallint NOT NULL default 0, punctual smallint NOT NULL default 1,