* [bug#62405,done,0.2h] fix set stage error when type isn't story.

This commit is contained in:
tianshujie
2025-05-19 10:26:26 +08:00
committed by 刘刚
parent 2a3e9a8b57
commit b006a2acfb
+1 -1
View File
@@ -4617,7 +4617,7 @@ class storyModel extends model
$story->closedDate = $now;
$story->assignedTo = 'closed';
$story->assignedDate = $now;
$story->stage = $reason == 'done' ? 'released' : 'closed';
$story->stage = $reason == 'done' && $oldStory->type == 'story' ? 'released' : 'closed';
$story->closedReason = $reason;
}