diff --git a/module/project/control.php b/module/project/control.php index 4b7f9f1095..f97e652426 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -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']);