Debug v23
This commit is contained in:
parent
8a2faed41f
commit
7af079a87f
1 changed files with 2 additions and 1 deletions
|
|
@ -336,7 +336,8 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
|||
$object->timespent_duration += (GETPOSTINT("new_durationmin") ? GETPOSTINT('new_durationmin') : 0) * 60; // We store duration in seconds
|
||||
|
||||
if (GETPOST("timelinehour") != '' && GETPOST("timelinehour") >= 0) { // If hour was entered
|
||||
$object->timespent_date = dol_mktime(GETPOSTINT("timelinehour"), GETPOSTINT("timelinemin"), 0, GETPOSTINT("timelinemonth"), GETPOSTINT("timelineday"), GETPOSTINT("timelineyear"));
|
||||
$object->timespent_date = dol_mktime(12, 0, 0, GETPOSTINT("timelinemonth"), GETPOSTINT("timelineday"), GETPOSTINT("timelineyear"));
|
||||
$object->timespent_datehour = dol_mktime(GETPOSTINT("timelinehour"), GETPOSTINT("timelinemin"), 0, GETPOSTINT("timelinemonth"), GETPOSTINT("timelineday"), GETPOSTINT("timelineyear"));
|
||||
$object->timespent_withhour = 1;
|
||||
} elseif (!empty($timespent_date)) {
|
||||
$object->timespent_date = $timespent_date;
|
||||
|
|
|
|||
Loading…
Reference in a new issue