* Fix project code details.

This commit is contained in:
Yagami
2021-03-09 13:44:42 +08:00
parent 52bcf357ec
commit 9098e727a5
16 changed files with 58 additions and 47 deletions
+3 -2
View File
@@ -167,7 +167,7 @@ class project extends control
*/
public function index($projectID = 0)
{
$this->lang->navGroup->project = 'project';
$this->lang->noMenuModule[] = 'project';
$projectID = $this->project->saveState($projectID, $this->project->getPairsByProgram());
$project = $this->project->getByID($projectID);
@@ -426,6 +426,7 @@ class project extends control
$this->view->URSRPairs = $this->loadModel('custom')->getURSRPairs();
$this->view->from = $from;
$this->view->parentProject = $parentProject;
$this->view->parentProgram = $this->loadModel('program')->getByID($project->parent);
$this->view->availableBudget = $this->program->getBudgetLeft($parentProject) + (float)$project->budget;
$this->view->budgetUnitList = $this->project->getBudgetUnitList();
@@ -1146,7 +1147,7 @@ class project extends control
$project = $this->project->getById($projectID);
$allProducts = $this->program->getProductPairs($project->parent, 'assign', 'noclosed');
$linkedProducts = $this->program->getProducts($project->id);
$linkedProducts = $this->product->getProducts($project->id);
$linkedBranches = array();
/* If the story of the product which linked the project, you don't allow to remove the product. */