Completed
Branch develop (5bcd5d)
by
unknown
20:54
created
htdocs/projet/class/api_tasks.class.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.