* Finish task #114645. Only enabled review points are shown in the Gantt chart of the IPD project.

This commit is contained in:
tanghucheng
2024-04-09 13:45:49 +08:00
parent f425c24826
commit bddf599244
+2 -2
View File
@@ -439,14 +439,14 @@ class programplanTao extends programplanModel
->leftJoin(TABLE_REVIEW)->alias('t2')->on('t1.id = t2.object')
->where('t1.deleted')->eq('0')
->andWhere('t1.project')->eq($projectID)
->andWhere('t1.product')->eq($productID)
->andWhere('t1.enabled')->eq(1)
->fetchAll('id');
foreach($datas['data'] as $plan)
{
if($plan->type != 'plan') continue;
foreach($reviewPoints as $id => $point)
foreach($reviewPoints as $point)
{
if(!isset($this->config->review->ipdReviewPoint->{$plan->attribute})) continue;
if(!isset($point->status)) $point->status = '';