diff --git a/module/product/ui/browse.html.php b/module/product/ui/browse.html.php index 8a6ae995d0..cf9b3e3317 100644 --- a/module/product/ui/browse.html.php +++ b/module/product/ui/browse.html.php @@ -214,7 +214,7 @@ foreach($stories as $story) { $story->rawModule = $story->module; $options['branches'] = zget($branchOptions, $story->product, array()); - $data[] = $this->story->formatStoryForList($story, $options, $storyType, $maxGrade); + $data[] = $this->story->formatStoryForList($story, $options, $storyType, $maxGradeGroup); } /* Generate toolbar of DataTable footer. */ diff --git a/module/product/zen.php b/module/product/zen.php index df60afe5e2..2c63f951cf 100644 --- a/module/product/zen.php +++ b/module/product/zen.php @@ -1473,7 +1473,7 @@ class productZen extends product $this->view->showGrade = count($gradeGroup[$storyType]) > 2; $this->view->gradeMenu = $this->loadModel('story')->getGradeMenu($storyType, $project); $this->view->gradePairs = $this->story->getGradePairs($storyType); - $this->view->maxGrade = $this->story->getMaxGrade($storyType); + $this->view->maxGradeGroup = $this->story->getMaxGradeGroup(); $this->view->storyType = $storyType; $this->view->browseType = $browseType; $this->view->isProjectStory = $isProjectStory;