* Fix bug #11742.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user