From a99aed925fe0c54e2c5d697bd807aac7e01ab374 Mon Sep 17 00:00:00 2001 From: sunjun Date: Wed, 15 Jun 2022 01:42:06 +0000 Subject: [PATCH] sprint_204_57094 --- module/execution/view/view.html.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php index 0768f28b86..b038f47f7c 100644 --- a/module/execution/view/view.html.php +++ b/module/execution/view/view.html.php @@ -191,11 +191,11 @@ { if($name != $end) { - echo html::a($this->createLink('program', 'product', "programID=$ID"), $name) . '/ '; + echo strpos(",{$app->user->view->programs},", ",$ID,") !== false ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) . '/ ' : $name . '/ '; } else { - echo html::a($this->createLink('program', 'product', "programID=$ID"), $name); + echo strpos(",{$app->user->view->programs},", ",$ID,") !== false ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) : $name; } } ?> @@ -214,7 +214,7 @@
- createLink('project', 'index', "projectID=$execution->project", '', '', $execution->project), $execution->projectInfo->name)?> + user->view->projects},", ",$execution->project,") !== false ? html::a($this->createLink('project', 'index', "projectID=$execution->project", '', '', $execution->project), $execution->projectInfo->name) : $execution->projectInfo->name;?>