* Add comments to the projectstory module.

This commit is contained in:
leiyong
2020-11-26 14:46:13 +08:00
parent 3e331c8c10
commit 2a52eda19e
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -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))
{
-3
View File
@@ -1,5 +1,2 @@
<?php
$lang->projectstory->index = '需求主页';
$lang->projectstory->requirement = '用户需求'; //$this->lang->projectURCommon
$lang->projectstory->story = '软件需求'; //$this->lang->projectSRCommon
$lang->projectstory->track = '跟踪矩阵';
+3
View File
@@ -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);