diff --git a/module/project/js/create.js b/module/project/js/create.js index d85cf06508..4f83bff8b5 100644 --- a/module/project/js/create.js +++ b/module/project/js/create.js @@ -82,9 +82,9 @@ function addNewProduct(obj) * @access public * @return void */ -function setAclList(projectID) +function setAclList(programID) { - if(projectID != 0) + if(programID != 0) { $('.aclBox').html($('#programAcl').html()); } diff --git a/module/project/js/edit.js b/module/project/js/edit.js index 115059a858..f9d3c0e2bf 100644 --- a/module/project/js/edit.js +++ b/module/project/js/edit.js @@ -3,6 +3,7 @@ $(function() $('#parent').change(function() { var programID = $(this).val(); + setAclList(programID); /* Determine whether the project can change the project set. */ link = createLink('project', 'ajaxCheckProduct', 'programID=' + programID + '&projectID=' + projectID); diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index 8916e61159..9ae8e18e97 100644 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -200,6 +200,6 @@ project->aclList, $acl, "onclick='setWhite(this.value);'", 'block'));?> diff --git a/module/project/view/edit.html.php b/module/project/view/edit.html.php index 04bf2191c7..905b5b77f1 100644 --- a/module/project/view/edit.html.php +++ b/module/project/view/edit.html.php @@ -173,7 +173,7 @@ project->aclList, $project->acl == 'project' ? 'private' : 'open', "onclick='setWhite(this.value);'", 'block'));?>