diff --git a/module/todo/control.php b/module/todo/control.php index 6cbee1dcb0..af81c577d8 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -398,7 +398,7 @@ class todo extends control } $projects = $this->loadModel('project')->getPairsByModel('all'); - if(!isset($this->session->PRJ)) $this->session->set('project', key($projects)); + if(!isset($this->session->project)) $this->session->set('project', key($projects)); $this->view->title = $this->app->user->account == $todo->account ? "{$this->lang->todo->common} #$todo->id $todo->name" : $this->lang->todo->common ; $this->view->position[] = $this->lang->todo->view; @@ -409,9 +409,9 @@ class todo extends control $this->view->actions = $this->loadModel('action')->getList('todo', $todoID); $this->view->from = $from; $this->view->projects = $projects; - $this->view->executions = $this->loadModel('execution')->getPairs($this->session->PRJ); + $this->view->executions = $this->loadModel('execution')->getPairs($this->session->project); $this->view->products = $this->loadModel('product')->getPairs(); - $this->view->projectProducts = $this->loadModel('product')->getProductPairsByProject($this->session->PRJ); + $this->view->projectProducts = $this->loadModel('product')->getProductPairsByProject($this->session->project); $this->display(); } diff --git a/module/tree/control.php b/module/tree/control.php index 293ebd4627..88053436c4 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -106,7 +106,7 @@ class tree extends control if($from == 'project') { $this->lang->navGroup->tree = 'project'; - $productPairs = $this->product->getProductPairsByProject($this->session->PRJ); + $productPairs = $this->product->getProductPairsByProject($this->session->project); } elseif($from == 'qa') { @@ -147,7 +147,7 @@ class tree extends control if($from == 'project') { $this->lang->navGroup->tree = 'project'; - $productPairs = $this->product->getProductPairsByProject($this->session->PRJ); + $productPairs = $this->product->getProductPairsByProject($this->session->project); } elseif($from == 'qa') { @@ -212,7 +212,7 @@ class tree extends control $this->lang->tree->menuOrder = $this->lang->project->menuOrder; /* The project parameter needs to be present when the tree module belongs to the project grouping. */ - if($this->session->docList && $this->session->PRJ && strpos($this->session->docList, 'project') === false) $this->session->set('docList', $this->session->docList . '?project=' . $this->session->PRJ); + if($this->session->docList && $this->session->project && strpos($this->session->docList, 'project') === false) $this->session->set('docList', $this->session->docList . '?project=' . $this->session->project); } if($from == 'doc') $this->lang->navGroup->doc = 'doc'; @@ -227,7 +227,7 @@ class tree extends control } elseif($viewType == 'line') { - $products = $this->product->getPairs('', $this->session->PRJ); + $products = $this->product->getPairs('', $this->session->project); $this->product->setMenu($products, $rootID, $branch, 'line', '', 'line'); $this->lang->tree->menu = $this->lang->product->menu; @@ -303,7 +303,7 @@ class tree extends control $products = $this->execution->getProducts($rootID); $this->view->products = $products; - $executions = $this->execution->getPairs($this->session->PRJ); + $executions = $this->execution->getPairs($this->session->project); /* Set menu. */ $this->execution->setMenu($rootID);