From 3d1aafd882e744e3da9a838da9703f18f2757bb1 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Fri, 23 Jul 2021 15:27:18 +0800 Subject: [PATCH] * Finish task#40524. --- module/execution/model.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index f58abd70bd..83ae49bc21 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -929,11 +929,24 @@ class executionModel extends model { if($currentModule == 'execution' and in_array($currentMethod, array('index', 'all', 'batchedit', 'create'))) return; + $projectNameSpan = ''; + $projectNameTitle = ''; $currentExecutionName = $this->lang->execution->common; if($executionID) { $currentExecution = $this->getById($executionID); $currentExecutionName = $currentExecution->name; + + if($this->config->systemMode == 'new') + { + $project = $this->loadModel('project')->getByID($currentExecution->project); + + if($project) + { + $projectNameTitle = $project->name . '/'; + $projectNameSpan = "{$project->name}/"; + } + } } if($this->app->viewType == 'mhtml' and $executionID) @@ -944,7 +957,7 @@ class executionModel extends model } $dropMenuLink = helper::createLink('execution', 'ajaxGetDropMenu', "executionID=$executionID&module=$currentModule&method=$currentMethod&extra="); - $output = "