Debug v23

This commit is contained in:
Laurent Destailleur
2025-11-23 22:14:34 +01:00
parent 9f73e65767
commit 8a2faed41f
2 changed files with 29 additions and 23 deletions

View File

@@ -2107,7 +2107,8 @@ class Task extends CommonObjectLine
$timespent->element_date = $this->timespent_date;
$timespent->element_datehour = $this->timespent_datehour;
$timespent->element_date_withhour = $this->timespent_withhour;
$timespent->element_date_withhour = $this->timespent_withhour; // 0 or 1
$timespent->element_duration = $this->timespent_duration;
if ($this->timespent_fk_user > 0) {
$timespent->fk_user = $this->timespent_fk_user;
@@ -2118,7 +2119,9 @@ class Task extends CommonObjectLine
$timespent->invoice_line_id = $this->timespent_invoicelineid;
dol_syslog(get_class($this)."::updateTimeSpent", LOG_DEBUG);
if ($timespent->update($user) > 0) {
$resupdate = $timespent->update($user);
if ($resupdate > 0) {
if (!$notrigger) {
// Call trigger
$result = $this->call_trigger('TASK_TIMESPENT_MODIFY', $user);