From 2d886198d17fad8550809a7a5d5dcd165cdaee65 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 1 Jul 2025 15:39:39 +0800 Subject: [PATCH] * [task#145923,done,2h,0h] Finish change workflowGroup on edit project. --- module/project/control.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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']);