Fix #20685 User Id not transmitted on Api addTimeSpent
Fix #20685 User Id not transmitted on Api addTimeSpent The User ID will be transmitted to the API call (if 0 then, the user will be selected from API key)
This commit is contained in:
parent
ac13768395
commit
59ec20f549
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user