diff --git a/module/bug/config.php b/module/bug/config.php index 596a12651d..d8a3dcac79 100755 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -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'; diff --git a/module/bug/zen.php b/module/bug/zen.php index 8dd3f78c09..82f9022c89 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -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 {