diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index e1a5b1876b9..5eefb341c3c 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -411,13 +411,10 @@ if (empty($reshook) && $action == 'add') $actionCommReminder->fk_user = $user; $actionCommReminder->offsetunit = $offsetunit; $actionCommReminder->offsetvalue = $offsetvalue; - $actionCommReminder->offsetvalue = 'todo'; + $actionCommReminder->status = $actionCommReminder::STATUS_TODO; //TODO : $fk_project $res = $actionCommReminder->create($user); - - var_dump($res); exit; - } $db->commit(); diff --git a/htdocs/comm/action/class/actioncommreminder.class.php b/htdocs/comm/action/class/actioncommreminder.class.php index bfee04a2d7a..db66112a261 100644 --- a/htdocs/comm/action/class/actioncommreminder.class.php +++ b/htdocs/comm/action/class/actioncommreminder.class.php @@ -109,6 +109,9 @@ class ActionCommReminder extends CommonObject */ public $status; + const STATUS_TODO = 0; + const STATUS_DONE = 1; + // END MODULEBUILDER PROPERTIES diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4ea835acd36..e5f12703d39 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5673,13 +5673,13 @@ class Form return $retstring; } - public function select_type_duration($prefix, $selected = 'month'){ + public function select_type_duration($prefix, $selected = 'minute'){ global $langs; $retstring = ''; - $TDurationTypes = array('year'=>$langs->trans('Years'), 'month'=>$langs->trans('Month'), 'week'=>$langs->trans('Weeks'), 'day'=>$langs->trans('Days'),'week'=>$langs->trans('Weeks'), 'day'=>$langs->trans('Days'), 'hour'=>$langs->trans('Hours'), 'minute'=>$langs->trans('Minutes')); + $TDurationTypes = array('year'=>$langs->trans('Years'), 'month'=>$langs->trans('Month'), 'week'=>$langs->trans('Weeks'), 'day'=>$langs->trans('Days'), 'hour'=>$langs->trans('Hours'), 'minute'=>$langs->trans('Minutes')); $retstring .= '