This commit is contained in:
lanzongjun
2022-07-06 15:39:33 +08:00
parent 67f1f7d8c9
commit d664bc44b0
+7 -3
View File
@@ -3927,7 +3927,7 @@ class storyModel extends model
if($story->stage == 'projected') $title = $this->lang->story->subDivideTip['projected'];
}
}
$menu .= $this->buildMenu('story', 'batchCreate', "productID=$story->product&branch=$story->branch&module=$story->module&$params&executionID={$this->session->project}", $story, $type, 'split', '', 'showinonlybody', '', '', $title);
$menu .= $this->buildMenu('story', 'batchCreate', "productID=$story->product&branch=$story->branch&module=$story->module&$params&executionID={$this->session->project}&plan={$story->plan}&type={$story->type}", $story, $type, 'split', '', 'showinonlybody', '', '', $title);
}
if($this->app->rawModule == 'projectstory' and $this->config->vision != 'lite') $menu .= $this->buildMenu('projectstory', 'unlinkStory', "projectID={$this->session->project}&$params", $story, $type, 'unlink', 'hiddenwin', 'showinonlybody');
@@ -4089,7 +4089,11 @@ class storyModel extends model
foreach($stories as $story)
{
if(!isset($group[$story->id])) continue;
if(!isset($group[$story->id]))
{
unset($stories[$story->id]);
continue;
}
$story->children = $this->getByList($group[$story->id]);
}
}
@@ -4373,7 +4377,7 @@ class storyModel extends model
{
$showBranch = isset($this->config->product->browse->showBranch) ? $this->config->product->browse->showBranch : 1;
}
if($storyType == 'requirement') echo '<span class="label label-badge label-light">SR</span> ';
if($storyType == 'requirement') echo '<span class="label label-badge label-light">' .$this->lang->story->childrenAB. '</span> ';
if($story->parent > 0 and isset($story->parentName)) $story->title = "{$story->parentName} / {$story->title}";
if(isset($branches[$story->branch]) and $showBranch and $this->config->vision == 'rnd') echo "<span class='label label-outline label-badge' title={$branches[$story->branch]}>{$branches[$story->branch]}</span> ";
if($story->module and isset($modulePairs[$story->module])) echo "<span class='label label-gray label-badge'>{$modulePairs[$story->module]}</span> ";