* Finish task#41559.
This commit is contained in:
@@ -2287,7 +2287,7 @@ class execution extends control
|
||||
|
||||
$currentMembers = $this->execution->getTeamMembers($executionID);
|
||||
$members2Import = $this->execution->getMembers2Import($team2Import, array_keys($currentMembers));
|
||||
$teams2Import = $this->loadModel('personnel')->getCopyObjects($executionID, 'sprint');
|
||||
$teams2Import = $this->loadModel('personnel')->getCopiedObjects($executionID, 'sprint');
|
||||
$teams2Import = array('' => '') + $teams2Import;
|
||||
|
||||
/* Append users for get users. */
|
||||
|
||||
@@ -202,7 +202,7 @@ class personnel extends control
|
||||
$this->view->objectID = $objectID;
|
||||
$this->view->objectType = $objectType;
|
||||
$this->view->objectName = $objectName;
|
||||
$this->view->objects = array('' => '') + $this->personnel->getCopyObjects($objectID, $objectType);
|
||||
$this->view->objects = array('' => '') + $this->personnel->getCopiedObjects($objectID, $objectType);
|
||||
$this->view->module = $module;
|
||||
$this->view->deptID = $deptID;
|
||||
$this->view->appendUsers = $appendUsers;
|
||||
|
||||
@@ -457,14 +457,14 @@ class personnelModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get objects to copy whitelist.
|
||||
* Get objects to copy.
|
||||
*
|
||||
* @param int $objectID
|
||||
* @param int $objectType
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getCopyObjects($objectID, $objectType)
|
||||
public function getCopiedObjects($objectID, $objectType)
|
||||
{
|
||||
$objects = array();
|
||||
|
||||
|
||||
@@ -1257,7 +1257,7 @@ class project extends control
|
||||
$this->view->depts = array('' => '') + $this->dept->getOptionMenu();
|
||||
$this->view->currentMembers = $currentMembers;
|
||||
$this->view->members2Import = $members2Import;
|
||||
$this->view->teams2Import = array('' => '') + $this->loadModel('personnel')->getCopyObjects($projectID, 'project');
|
||||
$this->view->teams2Import = array('' => '') + $this->loadModel('personnel')->getCopiedObjects($projectID, 'project');
|
||||
$this->view->copyProjectID = $copyProjectID;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user