Finish task #46674.

This commit is contained in:
zhouxin
2021-12-30 05:50:50 +00:00
parent 378b77cec7
commit 05a75e7039
7 changed files with 104 additions and 1 deletions
+5
View File
@@ -593,6 +593,9 @@ class project extends control
}
}
$canChangeModel = $this->project->checkCanChangeModel($projectID, $project->model);
$disableModel = $canChangeModel == true ? '' : 'disabled';
$this->view->title = $this->lang->project->edit;
$this->view->position[] = $this->lang->project->edit;
@@ -617,6 +620,8 @@ class project extends control
$this->view->parentProgram = $this->program->getByID($project->parent);
$this->view->availableBudget = $this->program->getBudgetLeft($parentProject) + (float)$project->budget;
$this->view->budgetUnitList = $this->project->getBudgetUnitList();
$this->view->model = $project->model;
$this->view->disableModel = $disableModel;
$this->display();
}