Merge branch 'zentaopms_263_bug#29950' into 'master'

* Fix bug #29950.

See merge request easycorp/zentaopms!6278
This commit is contained in:
王怡栋
2022-11-21 08:52:44 +00:00
+9 -2
View File
@@ -156,8 +156,15 @@ class doc extends control
/* Splice project name. */
foreach($executions as $executionID => $execution)
{
$executionPrefix = isset($projects[$execution->project]) ? $projects[$execution->project] . '/' : '';
$executions[$executionID] = $executionPrefix . $execution->name;
if($execution->multiple)
{
$executionPrefix = isset($projects[$execution->project]) ? $projects[$execution->project] . '/' : '';
$executions[$executionID] = $executionPrefix . $execution->name;
}
else
{
unset($executions[$executionID]);
}
}
/* Get the project that has permission to view. */