Merge branch dev/bug-63790 of zentao/zentaopms (#10318)

This commit is contained in:
刘刚
2025-07-10 13:40:59 +08:00
committed by Gitfox
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';