From 105304ce576f4a935d00e5846a9238798e8ed7aa Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 7 Jul 2022 16:18:22 +0800 Subject: [PATCH] * Fix bug #24946. --- module/execution/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/execution/model.php b/module/execution/model.php index b4e6f3e89f..e34346e572 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -488,6 +488,7 @@ class executionModel extends model ->setIF(!isset($_POST['whitelist']), 'whitelist', '') ->setIF($this->post->status == 'closed', 'closedDate', helper::now()) ->setIF($this->post->status == 'suspended', 'suspendedDate', helper::today()) + ->setIF($oldExecution->type == 'stage', 'project', $oldExecution->project) ->setDefault('team', $this->post->name) ->join('whitelist', ',') ->stripTags($this->config->execution->editor->edit['id'], $this->config->allowedTags)