Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.0.0' into 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Mar 30, 2023
2 parents 86eb0c4 + fd55757 commit 5b67a96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions view/quickevent.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,19 @@
$task->fetch($commTaskID);

$task->timespent_date = dol_now();
$task->timespent_note = $actioncomm->label;
$task->timespent_duration = GETPOST('timespent', 'int') * 60;
$task->timespent_fk_user = $user->id;

if ($task->timespent_duration > 0) {
$task->addTimeSpent($user);
$task->addTimeSpent($user, 1);
}
}
}

// Create reminders
if (getDolGlobalString('AGENDA_REMINDER_BROWSER') && $dateEnd > dol_now()) {
$dateremind = dol_time_plus_duree($dateEnd, -30, 'i');
if (getDolGlobalString('AGENDA_REMINDER_BROWSER') && $dateStart > dol_now()) {
$dateremind = dol_time_plus_duree($dateStart, -30, 'i');

$actionCommReminder->dateremind = $dateremind;
$actionCommReminder->typeremind = 'browser';
Expand All @@ -237,7 +238,7 @@
setEventMessages($langs->trans('ErrorReminderActionCommCreation'), $actioncomm->errors, 'errors');
$error++;
} else {
$mesg .= $langs->trans('ReminderActionCommCreation', dol_print_date($dateremind, 'dayhourtext')) . '<br>';
$mesg .= $langs->trans('ReminderActionCommCreation', dol_print_date($dateremind, 'dayhourtext', 'tzuser')) . '<br>';
}
}
} else {
Expand Down

0 comments on commit 5b67a96

Please sign in to comment.