* Add comments to the projectstory module.
This commit is contained in:
@@ -77,9 +77,7 @@ class projectModel extends model
|
||||
|
||||
if(!$projectID and $this->session->project) $projectID = $this->session->project;
|
||||
|
||||
/* Get project and program */
|
||||
$project = $this->getById($projectID);
|
||||
|
||||
$isProgram = false;
|
||||
if(!empty($project))
|
||||
{
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
<?php
|
||||
$lang->projectstory->index = '需求主页';
|
||||
$lang->projectstory->requirement = '用户需求'; //$this->lang->projectURCommon
|
||||
$lang->projectstory->story = '软件需求'; //$this->lang->projectSRCommon
|
||||
$lang->projectstory->track = '跟踪矩阵';
|
||||
|
||||
@@ -22,6 +22,9 @@ class projectstoryModel extends model
|
||||
*/
|
||||
public function setMenu($products = array(), $productID = 0, $branch = 0)
|
||||
{
|
||||
/* Determine if the product is accessible. */
|
||||
if($products and (!isset($products[$productID]) or !$this->loadModel('product')->checkPriv($productID))) $this->loadModel('product')->accessDenied();
|
||||
|
||||
if(empty($productID)) $productID = key($products);
|
||||
$this->loadModel('product')->setMenu($products, $productID, $branch);
|
||||
$selectHtml = $this->product->select($products, $productID, 'projectstory', $this->app->rawMethod, '', $branch);
|
||||
|
||||
Reference in New Issue
Block a user