diff --git a/module/story/model.php b/module/story/model.php index 7b2e1e662d..04660637b6 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -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 .= "
"; $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;