This commit is contained in:
hufangzhou
2021-04-01 15:56:30 +08:00
parent ee4864a30a
commit 68688736b5
+6 -3
View File
@@ -1192,6 +1192,7 @@ class execution extends control
*/
public function create($projectID = '', $executionID = '', $copyExecutionID = '', $planID = 0, $confirm = 'no', $productID = 0)
{
/* Set menu. */
if($this->app->openApp == 'project')
{
if(!empty($copyExecutionID)) $projectID = $this->dao->select('project')->from(TABLE_EXECUTION)->where('id')->eq($copyExecutionID)->fetch('project');
@@ -1200,6 +1201,11 @@ class execution extends control
$this->project->setMenu($projectID);
}
elseif($this->app->openApp == 'execution')
{
$executionID = key($this->executions);
$this->execution->setMenu($executionID);
}
$this->app->loadLang('program');
$this->app->loadLang('stage');
@@ -1291,9 +1297,6 @@ class execution extends control
}
}
$executionID = key($this->executions);
$this->execution->setMenu($executionID);
$this->view->title = $this->lang->execution->create;
$this->view->position[] = $this->view->title;
$this->view->executions = array('' => '') + $this->execution->getList();