From e47df9246c71af9c87ed82cdbf73706745852e92 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 12 Apr 2021 14:13:32 +0800 Subject: [PATCH] * Finish task #37391. --- 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 3f38a9d936..1dec807d88 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3160,7 +3160,7 @@ class storyModel extends model if($action == 'assignto') return $story->status != 'closed'; if($action == 'createcase') return $story->type != 'requirement'; if($action == 'batchcreate' and $story->parent > 0) return false; - if($action == 'batchcreate' and $story->type == 'requirement') return $story->status != 'draft'; + if($action == 'batchcreate' and $story->type == 'requirement' and $story->status != 'closed') return $story->status != 'draft'; if($action == 'batchcreate' and ($story->status != 'active' or $story->stage != 'wait')) return false; return true;