diff --git a/config/filter.php b/config/filter.php index dca7d428d4..6b26ad992d 100644 --- a/config/filter.php +++ b/config/filter.php @@ -85,7 +85,7 @@ $filter->program->browse = new stdclass(); $filter->program->export = new stdclass(); $filter->program->pgmbrowse = new stdclass(); $filter->program->export = new stdclass(); -$filter->program->ajaxgetpgmdropmenu = new stdclass(); +$filter->program->ajaxgetdropmenu = new stdclass(); $filter->project->default = new stdclass(); $filter->project->browse = new stdclass(); $filter->project->story = new stdclass(); @@ -165,13 +165,13 @@ $filter->product->index->cookie['preBranch'] = 'int'; $filter->product->export->cookie['checkedItem'] = 'reg::checked'; $filter->product->project->cookie['involved'] = 'code'; -$filter->program->default->cookie['lastPGM'] = 'int'; -$filter->program->default->cookie['lastPRJ'] = 'int'; -$filter->program->prjbrowse->cookie['programType'] = 'code'; -$filter->program->project->cookie['involved'] = 'code'; -$filter->program->browse->cookie['showClosed'] = 'code'; -$filter->program->export->cookie['checkedItem'] = 'reg::checked'; -$filter->program->ajaxgetpgmdropmenu->cookie['showClosed'] = 'code'; +$filter->program->default->cookie['lastPGM'] = 'int'; +$filter->program->default->cookie['lastPRJ'] = 'int'; +$filter->program->prjbrowse->cookie['programType'] = 'code'; +$filter->program->project->cookie['involved'] = 'code'; +$filter->program->browse->cookie['showClosed'] = 'code'; +$filter->program->export->cookie['checkedItem'] = 'reg::checked'; +$filter->program->ajaxgetdropmenu->cookie['showClosed'] = 'code'; $filter->project->default->cookie['lastProject'] = 'int'; $filter->project->default->cookie['lastPRJ'] = 'int'; diff --git a/module/build/control.php b/module/build/control.php index 5bd2bad7a2..5a68f6f040 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -63,7 +63,7 @@ class build extends control $products = array(); foreach($productGroups as $product) $products[$product->id] = $product->name; - $this->view->title = $execution->name . $this->lang->colon . $this->lang->build->create; + $this->view->title = $this->lang->build->create; $this->view->position[] = $this->lang->build->create; $this->view->product = isset($productGroups[$productID]) ? $productGroups[$productID] : ''; @@ -110,7 +110,7 @@ class build extends control $build = $this->build->getById((int)$buildID); /* Set menu. */ - $this->execution->setMenu($this->execution->getPairs($this->session->PRJ), $build->execution); + $this->execution->setMenu($this->execution->getPairs($build->project), $build->execution); /* Get stories and bugs. */ $orderBy = 'status_asc, stage_asc, id_desc'; @@ -205,8 +205,8 @@ class build extends control foreach($stages as $storyID => $stage)$stories[$storyID]->stage = $stage; /* Set menu. */ - $this->loadModel('execution')->setMenu($this->execution->getPairs($this->session->PRJ), $build->execution, $buildID); - $executions = $this->execution->getPairs($this->session->PRJ, 'all', 'empty'); + commonModel::setAppObjectID('execution', $build->execution); + $executions = $this->loadModel('execution')->getPairs($this->session->PRJ, 'all', 'empty'); $this->view->title = "BUILD #$build->id $build->name - " . $executions[$build->execution]; $this->view->position[] = html::a($this->createLink('execution', 'task', "executionID=$build->execution"), $executions[$build->execution]); @@ -400,7 +400,7 @@ class build extends control $this->session->set('storyList', inlink('view', "buildID=$buildID&type=story&link=true¶m=" . helper::safe64Encode("&browseType=$browseType&queryID=$param"))); $build = $this->build->getById($buildID); $product = $this->loadModel('product')->getById($build->product); - $this->loadModel('execution')->setMenu($this->execution->getPairs($this->session->PRJ), $build->execution); + $this->loadModel('execution')->setMenu($this->execution->getPairs($build->project), $build->execution); $this->loadModel('story'); $this->loadModel('tree'); $this->loadModel('product'); @@ -519,7 +519,7 @@ class build extends control /* Set menu. */ $build = $this->build->getByID($buildID); $product = $this->loadModel('product')->getByID($build->product); - $this->loadModel('execution')->setMenu($this->execution->getPairs($this->session->PRJ), $build->execution); + $this->loadModel('execution')->setMenu($this->execution->getPairs($build->project), $build->execution); /* Load pager. */ $this->app->loadClass('pager', $static = true); diff --git a/module/execution/control.php b/module/execution/control.php index b011e50a06..48c60058e9 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -475,7 +475,7 @@ class execution extends control $toExecution = $execution->id; $branches = $this->execution->getBranches($toExecution); $tasks = $this->execution->getTasks2Imported($toExecution, $branches); - $executions = $this->execution->getsToImport(array_keys($tasks), $execution->type); + $executions = $this->execution->getToImport(array_keys($tasks), $execution->type); unset($executions[$toExecution]); unset($tasks[$toExecution]); @@ -540,7 +540,7 @@ class execution extends control $this->app->session->set('executionList', $uri); $this->loadModel('bug'); - $executions = $this->execution->getPairs($this->session->PRJ, 'all', 'nocode'); + $executions = $this->execution->getPairs(0, 'all', 'nocode'); $this->execution->setMenu($executions, $executionID); /* Load pager. */ @@ -1052,7 +1052,7 @@ class execution extends control $this->view->orderBy = $orderBy; $this->view->tasks = $productTasks; $this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter'); - $this->view->products = $this->loadModel('product')->getPairs('', $this->session->PRJ); + $this->view->products = $this->loadModel('product')->getPairs('', 0); $this->view->canBeChanged = common::canModify('execution', $execution); // Determines whether an object is editable. $this->display(); @@ -2964,7 +2964,7 @@ class execution extends control $this->view->cases = $cases; $this->view->story = $story; $this->view->users = $users; - $this->view->executions = $this->loadModel('execution')->getPairs($this->session->PRJ, 'all', 'nocode'); + $this->view->executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode'); $this->view->actions = $this->loadModel('action')->getList('story', $storyID); $this->view->modulePath = $modulePath; $this->view->version = $version == 0 ? $story->version : $version; diff --git a/module/execution/model.php b/module/execution/model.php index 6822f93ff5..07d33a723e 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -212,7 +212,7 @@ class executionModel extends model */ public function tree() { - $products = $this->loadModel('product')->getPairs('nocode', $this->session->PRJ); + $products = $this->loadModel('product')->getPairs('nocode', 0); $productGroup = $this->getProductGroupList(); $executionTree = "