* [task#137137,done,1h] Display grade label in plan story block.

This commit is contained in:
daitingting
2025-02-10 11:19:41 +08:00
committed by 谢杞钰
parent 7b52d158ce
commit 6583a40e63
4 changed files with 30 additions and 30 deletions
+7 -8
View File
@@ -1633,15 +1633,14 @@ class docZen extends doc
$gradeList = $this->loadModel('story')->getGradeList('');
foreach($gradeList as $grade) $gradeGroup[$grade->type][$grade->grade] = $grade->name;
if($type == 'productStory') $storyType = 'story';
if($type == 'ER') $storyType = 'epic';
if($type == 'UR') $storyType = 'requirement';
if($storyType != 'story')$this->loadModel($storyType);
$gradeMenu = $this->story->getGradeMenu($storyType);
if($type != 'planStory')
{
if($type == 'productStory') $storyType = 'story';
if($type == 'ER') $storyType = 'epic';
if($type == 'UR') $storyType = 'requirement';
$this->view->storyType = $storyType;
}
$this->view->gradeGroup = $gradeGroup;
$this->view->storyType = $storyType;
$this->view->showGrades = !empty($this->config->{$storyType}->showGrades) ? $this->config->{$storyType}->showGrades : $this->story->getDefaultShowGrades($gradeMenu);
}
}