This commit is contained in:
tianshujie
2023-12-12 14:58:19 +08:00
parent 4a913fe9b1
commit 89f8988aeb
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ $config->bug->actionList['edit']['data-app'] = $app->tab;
$config->bug->actionList['copy']['icon'] = 'copy';
$config->bug->actionList['copy']['text'] = $lang->bug->copy;
$config->bug->actionList['copy']['hint'] = $lang->bug->copy;
$config->bug->actionList['copy']['url'] = array('module' => 'bug', 'method' => 'create', 'params' => 'productID={product}&branch={branch}&extra=bugID={id}');
$config->bug->actionList['copy']['url'] = array('module' => 'bug', 'method' => 'create', 'params' => 'productID={product}&branch={branch}&extra=bugID={id},projectID={project},executionID={execution}');
$config->bug->actionList['copy']['data-app'] = $app->tab;
$config->bug->actionList['delete']['icon'] = 'trash';
+10 -2
View File
@@ -847,13 +847,21 @@ class bugZen extends bug
if($this->app->tab == 'execution')
{
if(isset($output['executionID'])) $this->loadModel('execution')->setMenu((int)$output['executionID']);
if(isset($output['executionID']))
{
$this->loadModel('execution')->setMenu((int)$output['executionID']);
$this->view->executionID = $output['executionID'];
}
$execution = $this->dao->findById($this->session->execution)->from(TABLE_EXECUTION)->fetch();
if($execution->type == 'kanban') $this->assignKanbanVars($execution, $output);
}
elseif($this->app->tab == 'project')
{
if(isset($output['projectID'])) $this->loadModel('project')->setMenu((int)$output['projectID']);
if(isset($output['projectID']))
{
$this->loadModel('project')->setMenu((int)$output['projectID']);
$this->view->projectID = $output['projectID'];
}
}
else
{