diff --git a/module/project/control.php b/module/project/control.php index 0ebebed49e..dbeab3a1f9 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -551,6 +551,7 @@ class project extends control $whitelist = ''; $acl = 'private'; $auth = 'extend'; + $multiple = 1; $hasProduct = 1; $shadow = 0; $products = array(); @@ -566,6 +567,7 @@ class project extends control $whitelist = $copyProject->whitelist; $acl = $copyProject->acl; $auth = $copyProject->auth; + $multiple = $copyProject->multiple; $hasProduct = $copyProject->hasProduct; $programID = $copyProject->parent; $model = $copyProject->model; @@ -614,6 +616,7 @@ class project extends control $this->view->acl = $acl; $this->view->auth = $auth; $this->view->whitelist = $whitelist; + $this->view->multiple = $multiple; $this->view->hasProduct = $hasProduct; $this->view->copyProjectID = $copyProjectID; $this->view->programList = $this->program->getParentPairs(); diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index 833cef5dd9..61f282a2c0 100755 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -76,12 +76,22 @@ project->multiple;?> - project->multipleList, '1'));?> + + project->multipleList, $multiple, $copyProjectID ? 'disabled' : '')); + if($copyProjectID) echo html::hidden('multiple', $multiple); + ?> + project->type;?> - project->projectTypeList, $hasProduct, $copyProjectID ? 'disabled' : '');?> + + project->projectTypeList, $hasProduct, $copyProjectID ? 'disabled' : ''); + if($copyProjectID) echo html::hidden('hasProduct', $hasProduct); + ?> + project->PM;?>