* [task#145923,done,2h,0h] Finish change workflowGroup on edit project.
This commit is contained in:
@@ -500,13 +500,19 @@ class project extends control
|
||||
* @param int $projectID
|
||||
* @param string $from
|
||||
* @param int $programID
|
||||
* @param string $extra
|
||||
* @access public
|
||||
*/
|
||||
public function edit(int $projectID, string $from = '', int $programID = 0)
|
||||
public function edit(int $projectID, string $from = '', int $programID = 0, string $extra = '')
|
||||
{
|
||||
$project = $this->project->getByID($projectID);
|
||||
$this->project->setMenu($projectID);
|
||||
|
||||
$extra = str_replace(array(',', ' '), array('&', ''), $extra);
|
||||
parse_str($extra, $output);
|
||||
|
||||
if(!empty($output['workflowGroup'])) $project->workflowGroup = (int)$output['workflowGroup'];
|
||||
|
||||
if($project->model == 'kanban')
|
||||
{
|
||||
unset($this->lang->project->authList['reset']);
|
||||
|
||||
Reference in New Issue
Block a user