From c10556473f64bb8f26013cf41fb8c27bc40e7eb2 Mon Sep 17 00:00:00 2001 From: atm-lena Date: Wed, 26 Aug 2020 15:35:12 +0200 Subject: [PATCH] Clean --- htdocs/comm/action/card.php | 5 +---- htdocs/comm/action/class/actioncommreminder.class.php | 3 +++ htdocs/core/class/html.form.class.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 .= '