Clean
This commit is contained in:
parent
552e655668
commit
c10556473f
@ -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();
|
||||
|
||||
@ -109,6 +109,9 @@ class ActionCommReminder extends CommonObject
|
||||
*/
|
||||
public $status;
|
||||
|
||||
const STATUS_TODO = 0;
|
||||
const STATUS_DONE = 1;
|
||||
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
|
||||
@ -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 .= '<select class="flat" id="select_'.$prefix.'type_duration" name="'.$prefix.'type_duration">';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user