diff --git a/module/doc/control.php b/module/doc/control.php index 20614fb928..7447ef0ef7 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -246,7 +246,16 @@ class doc extends control if(!empty($lib->execution)) { $execution = $this->execution->getByID($lib->execution); - if($execution->type == 'stage') $this->lang->doc->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->execution); + if($execution->type == 'stage') + { + if($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); + } + + $this->lang->doc->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->execution); + } $this->view->execution = $execution; }