diff --git a/module/todo/control.php b/module/todo/control.php index 06b55c6080..75ec16b32b 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -400,7 +400,7 @@ class todo extends control } $projects = $this->loadModel('project')->getPairs(); - if(!isset($this->session->project)) $this->session->set('project', key($projects)); + if(!isset($this->session->PRJ)) $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; @@ -411,9 +411,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->project); + $this->view->executions = $this->loadModel('execution')->getPairs($this->session->PRJ); $this->view->products = $this->loadModel('product')->getPairs(); - $this->view->projectProducts = $this->loadModel('product')->getProductPairsByProject($this->session->project); + $this->view->projectProducts = $this->loadModel('product')->getProductPairsByProject($this->session->PRJ); $this->display(); } diff --git a/module/tree/control.php b/module/tree/control.php index 3a071bfcf4..0989edf5ba 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -98,7 +98,7 @@ class tree extends control if($from == 'project') { $this->lang->navGroup->tree = 'project'; - $productPairs = $this->product->getProductPairsByProject($this->session->project); + $productPairs = $this->product->getProductPairsByProject($this->session->PRJ); } elseif($from == 'qa') { @@ -141,7 +141,7 @@ class tree extends control if($from == 'project') { $this->lang->navGroup->tree = 'project'; - $productPairs = $this->product->getProductPairsByProject($this->session->project); + $productPairs = $this->product->getProductPairsByProject($this->session->PRJ); } elseif($from == 'qa') { @@ -210,7 +210,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->project && strpos($this->session->docList, 'project') === false) $this->session->set('docList', $this->session->docList . '?project=' . $this->session->project); + 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($from == 'doc') $this->lang->navGroup->doc = 'doc'; @@ -226,7 +226,7 @@ class tree extends control } elseif($viewType == 'line') { - $products = $this->product->getPairs('', $this->session->project); + $products = $this->product->getPairs('', $this->session->PRJ); $this->lang->set('menugroup.tree', 'product'); $this->product->setMenu($products, $rootID, $branch, 'line', '', 'line'); @@ -306,7 +306,7 @@ class tree extends control $products = $this->execution->getProducts($rootID); $this->view->products = $products; - $executions = $this->execution->getPairs($this->session->project); + $executions = $this->execution->getPairs($this->session->PRJ); /* Set menu. */ $this->lang->set('menugroup.tree', 'execution');