* [task#127051,1h,0h] Fix error.

This commit is contained in:
tanghucheng
2024-08-28 17:12:37 +08:00
committed by 胡方舟
parent 5ca5fc1a48
commit 1fc91a2227
+2 -1
View File
@@ -1264,7 +1264,8 @@ class blockZen extends block
$plans = $this->loadModel('programplan')->getStage($this->session->project, $productID, 'all', 'order');
$plans = $this->programplan->initGanttPlans($plans);
$plansProgress = $this->loadModel('metric')->getResultByCodeWithArray('progress_of_task_in_execution', array('execution' => implode(',', $plans['planIdList'])), 'cron'); // Get plan progress by metric.
$plans = $plans['datas']['data'];
$plans = $plans['datas'] ? $plans['datas']['data'] : array();
/* Set progress from metric. */
foreach($plansProgress as $metric)
{