diff --git a/module/program/control.php b/module/program/control.php
index eb7062b696..42e18f7fb6 100644
--- a/module/program/control.php
+++ b/module/program/control.php
@@ -167,6 +167,7 @@ class program extends control
$this->view->users = $this->user->getPairs('noclosed|nodeleted');
$this->view->parentProgram = $parentProgramID ? $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($parentProgramID)->fetch() : 0;
$this->view->parents = $this->program->getParentPairs();
+ $this->view->PGMList = $this->program->getPGMList();
$this->display();
}
diff --git a/module/program/js/common.js b/module/program/js/common.js
index 8ac3b58b7f..7fd8dac776 100644
--- a/module/program/js/common.js
+++ b/module/program/js/common.js
@@ -281,3 +281,31 @@ $(function()
}
});
})
+
+/**
+ * Set budget tips and acl list.
+ *
+ * @param int $parentProgramID
+ * @access public
+ * @return void
+ */
+function setBudgetTipsAndAclList(parentProgramID)
+{
+ if(parentProgramID != 0)
+ {
+ $('.budgetSpan').removeClass('hidden');
+
+ parentProgram = PGMList[parentProgramID];
+ programBudget = parentProgram.budget;
+ PGMBudgetUnit = budgetUnitList[parentProgram.budgetUnit];
+
+ budgetNotes = programBudget != 0 ? (programBudget + PGMBudgetUnit) : future;
+ $('.budgetSpan').html(PGMParentBudget + budgetNotes);
+ $('.aclBox').html($('#subPGMAcl').html());
+ }
+ else
+ {
+ $('.budgetSpan').addClass('hidden');
+ $('.aclBox').html($('#PGMAcl').html());
+ }
+}
diff --git a/module/program/view/pgmcreate.html.php b/module/program/view/pgmcreate.html.php
index f44eea15aa..c9c7cdf6c7 100644
--- a/module/program/view/pgmcreate.html.php
+++ b/module/program/view/pgmcreate.html.php
@@ -35,6 +35,10 @@
project->placeholder);?>
project->errorSameProducts);?>
program->PRJLongTime);?>
+program->unitList);?>
+program->PGMParentBudget);?>
+program->future);?>
+
program->PGMCreate->requiredFields;?>