Merge branch 'master' of github.com:easysoft/zentaopms

This commit is contained in:
wangyidong
2020-04-08 10:09:42 +08:00

View File

@@ -2626,6 +2626,7 @@ class storyModel extends model
if($action == 'activate') return $story->status == 'closed';
if($action == 'assignto') return $story->status != 'closed';
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->status != 'active' or $story->stage != 'wait')) return false;
return true;