From 82c4eba324c8c61ee2e73d4a9ea6e5daddda2b03 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 18 May 2022 16:36:34 +0800 Subject: [PATCH] * Fix bug #22637. --- doc/CHANGELOG | 3 --- module/doc/control.php | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 75fa8382c2..91a8c8f0c5 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -43,9 +43,6 @@ 28564 项目集列表页面增加分页功能 28363 切换项目后的页面保持和切换前的页面一致 27850 批量修改执行所属项目时提示用户该操作的影响 -25835 回收站增加搜索功能 -15599 系统登陆逻辑增加referer是否是ajax请求的判断 -15349 产品模块的维护增加历史记录 15239 Bug搜索条件中增加按关联需求搜索字段 2022-03-24 16.5 diff --git a/module/doc/control.php b/module/doc/control.php index a8a29389c1..5eca640446 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -154,7 +154,11 @@ class doc extends control $executions = $this->execution->getList(); /* Splice project name. */ - foreach($executions as $executionID => $execution) $executions[$executionID] = $projects[$execution->project] . '/' . $execution->name; + foreach($executions as $executionID => $execution) + { + $executionPrefix = isset($projects[$execution->project]) ? $projects[$execution->project] . '/' : ''; + $executions[$executionID] = $executionPrefix . $execution->name; + } /* Get the project that has permission to view. */ foreach($projects as $projectID => $project) if(!$this->app->user->admin and strpos(',' . $this->app->user->view->projects . ',', ',' . $projectID . ',') === false) unset($projects[$projectID]);