|
@@ -651,8 +651,9 @@ |
|
|
block discarded – undo |
|
651
|
651
|
$this->task->timespent_fk_product = $product_id; |
|
652
|
652
|
$this->task->timespent_fk_user = $uid; |
|
653
|
653
|
$this->task->timespent_note = $note; |
|
654
|
|
- if (!empty($this->task->progress)) |
|
655
|
|
- $this->task->progress = $progress; |
|
|
654
|
+ if (!empty($this->task->progress)) { |
|
|
655
|
+ $this->task->progress = $progress; |
|
|
656
|
+ } |
|
656
|
657
|
|
|
657
|
658
|
$result = $this->task->addTimeSpent(DolibarrApiAccess::$user, 0); |
|
658
|
659
|
if ($result == 0) { |
Please login to merge, or discard this patch.