Skip to content

Commit

Permalink
#31 #32 [QuickEvent] add: disable trigger timespent and add note
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Mar 28, 2023
1 parent 3e27429 commit fd55757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/quickevent.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@
$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);
}
}
}
Expand Down

0 comments on commit fd55757

Please sign in to comment.