Merge pull request #22994 from ibuiv/patch-1

Fix #20685 User Id not transmitted on Api addTimeSpent
This commit is contained in:
Laurent Destailleur 2022-11-26 11:30:47 +01:00 committed by GitHub
commit b522517c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -545,7 +545,7 @@ class Tasks extends DolibarrApi
$this->task->timespent_datehour = $newdate;
$this->task->timespent_withhour = 1;
$this->task->timespent_duration = $duration;
$this->task->timespent_fk_user = $user_id;
$this->task->timespent_fk_user = $uid;
$this->task->timespent_note = $note;
$result = $this->task->addTimeSpent(DolibarrApiAccess::$user, 0);