* Fix bug #23114.
This commit is contained in:
@@ -252,7 +252,7 @@ class program extends control
|
||||
$this->view->program = $program;
|
||||
$this->view->parents = $parents;
|
||||
$this->view->programList = $this->program->getList();
|
||||
$this->view->budgetUnitList = $this->program->getBudgetUnitList();
|
||||
$this->view->budgetUnitList = $this->loadModel('project')->getBudgetUnitList();
|
||||
$this->view->parentProgram = $parentProgram;
|
||||
$this->view->availableBudget = $this->program->getBudgetLeft($parentProgram) + (float)$program->budget;
|
||||
|
||||
|
||||
@@ -1443,20 +1443,6 @@ class programModel extends model
|
||||
return $stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get budget unit list.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getBudgetUnitList()
|
||||
{
|
||||
$budgetUnitList = array();
|
||||
foreach(explode(',', $this->config->project->unitList) as $unit) $budgetUnitList[$unit] = zget($this->lang->project->unitList, $unit, '');
|
||||
|
||||
return $budgetUnitList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get program team member pairs.
|
||||
*
|
||||
|
||||
@@ -523,7 +523,7 @@ class project extends control
|
||||
$this->view->parentProgram = $parentProgram;
|
||||
$this->view->URSRPairs = $this->loadModel('custom')->getURSRPairs();
|
||||
$this->view->availableBudget = $this->program->getBudgetLeft($parentProgram);
|
||||
$this->view->budgetUnitList = $this->program->getBudgetUnitList();
|
||||
$this->view->budgetUnitList = $this->project->getBudgetUnitList();
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ class projectModel extends model
|
||||
public function getBudgetUnitList()
|
||||
{
|
||||
$budgetUnitList = array();
|
||||
foreach(explode(',', $this->config->project->unitList) as $unit) $budgetUnitList[$unit] = zget($this->lang->project->unitList, $unit, '');
|
||||
if($this->config->vision != 'lite') foreach(explode(',', $this->config->project->unitList) as $unit) $budgetUnitList[$unit] = zget($this->lang->project->unitList, $unit, '');
|
||||
|
||||
return $budgetUnitList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user