* Add locate logic in gantt view.

This commit is contained in:
Yagami
2023-05-12 16:24:14 +08:00
parent e36e51cdf7
commit f1c73eba0a
2 changed files with 7 additions and 7 deletions
+2 -1
View File
@@ -368,7 +368,7 @@ class programplanModel extends model
if($project->model == 'ipd' and $datas)
{
$this->loadModel('review');
$reviewPoints = $this->dao->select('t1.*, t2.status, t2.lastReviewedDate')->from(TABLE_OBJECT)->alias('t1')
$reviewPoints = $this->dao->select('t1.*, t2.status, t2.lastReviewedDate,t2.id as reviewID')->from(TABLE_OBJECT)->alias('t1')
->leftJoin(TABLE_REVIEW)->alias('t2')->on('t1.id = t2.object')
->where('t1.deleted')->eq('0')
->andWhere('t1.project')->eq($projectID)
@@ -413,6 +413,7 @@ class programplanModel extends model
$data = new stdclass();
$data->id = $plan->id . '-' . $point->category . '-' . $point->id;
$data->reviewID = $point->reviewID;
$data->type = 'point';
$data->text = "<i class='icon-seal'></i> " . $point->title;
$data->name = $point->title;