* finish task #75911

This commit is contained in:
lanzongjun
2022-11-14 14:35:55 +08:00
parent e045ce8322
commit d6c741c436
+10 -3
View File
@@ -4218,8 +4218,13 @@ class storyModel extends model
if($action == 'batchcreate' and $story->parent > 0) return false;
if($action == 'batchcreate' and $story->type == 'requirement' and $story->status != 'closed') return strpos('draft,reviewing,changing', $story->status) === false;
if($action == 'batchcreate' and $config->vision == 'lite' and ($story->status == 'active' and ($story->stage == 'wait' or $story->stage == 'projected'))) return true;
if($action == 'batchcreate' and ($story->status != 'active' or (isset($shadowProducts[$story->product]) && $story->stage != 'projected') or (!isset($shadowProducts[$story->product]) && $story->stage != 'wait') or !empty($story->plan))) return false;
/* Adjust code, hide split entry, fix bug #29432. */
if($action == 'batchcreate' and ($story->status != 'active' or (isset($shadowProducts[$story->product])) or (!isset($shadowProducts[$story->product]) && $story->stage != 'wait') or !empty($story->plan))) return false;
if($action == 'batchcreate')
{
a($story);
a($shadowProducts);exit;
}
return true;
}
@@ -4487,7 +4492,9 @@ class storyModel extends model
if(($canEstimate or $canCreateCase) and $canUnlinkStory) $menu .= "<div class='dividing-line'></div>";
$executionID = empty($execution) ? 0 : $execution->id;
if(common::hasPriv('story', 'batchCreate') and !$execution->multiple and !$execution->hasProduct)
/* Adjust code, hide split entry, fix bug #29432. */
if(common::hasPriv('story', 'batchCreate') and !$execution->multiple and !$execution->hasProduct and false)
{
$isClick = $this->isClickable($story, 'batchcreate');
$title = $this->lang->story->subdivide;