* Fix fatal type error.

This commit is contained in:
dingguodong
2023-09-07 17:06:15 +08:00
parent 47b94b211d
commit 2f34783a39
+1 -1
View File
@@ -2458,7 +2458,7 @@ class executionModel extends model
$execution->totalHours = $this->dao->select('sum(days * hours) AS totalHours')->from(TABLE_TEAM)->where('root')->eq($execution->id)->andWhere('type')->eq('execution')->fetch('totalHours');
$execution->totalEstimate = round((float)$total->totalEstimate, 1);
$execution->totalConsumed = round((float)$total->totalConsumed, 1);
$execution->totalLeft = round((float)($total->totalLeft - $closedTotalLeft), 1);
$execution->totalLeft = round(((float)$total->totalLeft - (float)$closedTotalLeft), 1);
$execution = $this->loadModel('file')->replaceImgURL($execution, 'desc');
if($setImgSize) $execution->desc = $this->file->setImgSize($execution->desc);