From c6841126ba2e500c2636e9cb3d6ced7ba3a4a5cb Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 7 Feb 2023 11:18:29 +0800 Subject: [PATCH] * Finish task #83950. --- module/doc/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index cb32efbaf0..ce35927a4f 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1580,6 +1580,11 @@ class docModel extends model $orderedExecutions = array(); foreach($executions as $id => $execution) { + if($execution->type == 'stage' and $execution->grade != 1) + { + $parentExecutions = $this->dao->select('id,name')->from(TABLE_EXECUTION)->where('id')->in(trim($execution->path, ','))->andWhere('type')->in('stage,kanban,sprint')->orderBy('grade')->fetchPairs(); + $execution->name = implode('/', $parentExecutions); + } $execution->name = zget($projectPairs, $execution->project) . ' / ' . $execution->name; if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM == $this->app->user->account)