* [bug#63790,done,0.3h] remove changed status when the status is closed or cancel.

This commit is contained in:
tianshujie
2025-07-08 11:46:50 +08:00
parent bc2827bc77
commit de17aa27be
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -945,7 +945,7 @@ class programplanModel extends model
/* Story changed or not. */
$task->storyVersion = zget($storyVersionPairs, $task->id, $task->storyVersion);
$task->needConfirm = false;
if(!empty($task->storyStatus) && $task->storyStatus == 'active' && $task->latestStoryVersion > $task->storyVersion)
if(!empty($task->storyStatus) && $task->storyStatus == 'active' && !in_array($task->status, array('cancel', 'closed')) && $task->latestStoryVersion > $task->storyVersion)
{
$task->needConfirm = true;
$task->status = 'changed';