* Finish task#8948.
This commit is contained in:
+13
-13
@@ -1606,9 +1606,8 @@ class programModel extends model
|
||||
|
||||
if($col->show)
|
||||
{
|
||||
$class = "c-$id";
|
||||
$title = '';
|
||||
$PRJPGM = '';
|
||||
$class = "c-$id";
|
||||
$title = '';
|
||||
|
||||
if($id == 'idAB') $class .= ' cell-id';
|
||||
|
||||
@@ -1618,17 +1617,18 @@ class programModel extends model
|
||||
$title = "title='{$project->name}'";
|
||||
}
|
||||
|
||||
if($id == 'PRJPGM')
|
||||
$PRJProgram = '';
|
||||
if($id == 'PRJProgram')
|
||||
{
|
||||
$programList = $this->getPGMPairs();
|
||||
$PGMIndex = strpos($project->path, $programID);
|
||||
$PRJIndex = strpos($project->path, $project->id);
|
||||
$PGMPath = explode(',' , substr($project->path, $PGMIndex, $PRJIndex - $PGMIndex));
|
||||
foreach($PGMPath as $program)
|
||||
$programList = $this->getPGMPairs();
|
||||
$programIndex = strpos($project->path, $programID);
|
||||
$projectIndex = strpos($project->path, $project->id);
|
||||
$programPath = explode(',' , substr($project->path, $programIndex, $projectIndex - $programIndex));
|
||||
foreach($programPath as $program)
|
||||
{
|
||||
if($program) $PRJPGM .= '/' . zget($programList, $program);
|
||||
if($program) $PRJProgram .= '/' . zget($programList, $program);
|
||||
}
|
||||
$title = "title='{$PRJPGM}'";
|
||||
$title = "title='{$PRJProgram}'";
|
||||
}
|
||||
|
||||
echo "<td class='c-name " . $class . "' $title>";
|
||||
@@ -1643,8 +1643,8 @@ class programModel extends model
|
||||
if($project->model === 'waterfall') echo "<span class='project-type-label label label-outline label-warning'>{$this->lang->program->waterfall}</span>";
|
||||
if($project->model === 'scrum') echo "<span class='project-type-label label label-outline label-info'>{$this->lang->program->scrum}</span>";
|
||||
break;
|
||||
case 'PRJPGM':
|
||||
echo $PRJPGM;
|
||||
case 'PRJProgram':
|
||||
echo $PRJProgram;
|
||||
break;
|
||||
case 'PM':
|
||||
echo zget($users, $project->PM);
|
||||
|
||||
Reference in New Issue
Block a user