diff --git a/module/execution/control.php b/module/execution/control.php index 25f8e63cb8..ba411988dd 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1678,8 +1678,9 @@ class execution extends control if($this->app->tab == 'project') { $projectID = $this->session->project; + $project = $this->project->getById($projectID); $this->project->setMenu($projectID); - $this->view->project = $this->project->getById($projectID); + $this->view->project = $project; } if(!$this->post->executionIDList) return print(js::locate($this->session->executionList, 'parent')); @@ -1717,7 +1718,7 @@ class execution extends control $this->view->position[] = $this->lang->execution->batchEdit; $this->view->executionIDList = $executionIDList; $this->view->executions = $executions; - $this->view->allProjects = $this->project->getPairsByModel('all', 0, 'noclosed', isset($projectID) ? $projectID : 0); + $this->view->allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); $this->view->pmUsers = $pmUsers; $this->view->poUsers = $poUsers; $this->view->qdUsers = $qdUsers;