From 8f84200b4de4f3e562eb959f0a08843b2d6a409e Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 20 Jun 2024 14:22:43 +0800 Subject: [PATCH] * [bug#51382,done,0.1h] filter child story. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 62b3703510..a01f0f8037 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3293,7 +3293,7 @@ class storyModel extends model if($action == 'batchcreate') { if($config->vision == 'or') return false; - if($config->vision == 'lite' && ($story->status == 'active' && in_array($story->stage, array('wait', 'projected')))) return true; + if($config->vision == 'lite' && ($story->parent <= 0 && $story->status == 'active' && in_array($story->stage, array('wait', 'projected')))) return true; if($story->parent > 0 || !empty($story->twins)) return false; if($story->type == 'requirement' && strpos('draft,reviewing,changing', $story->status) !== false) return false;