* Finish task #37391.

This commit is contained in:
tianshujie98
2021-04-12 14:13:32 +08:00
parent 5a708667ba
commit e47df9246c
+1 -1
View File
@@ -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;