From 3aa3a33e6a74c3a04e8074e96a3fbc842c05ca40 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 20 May 2024 14:28:49 +0800 Subject: [PATCH] * Fix bug #49854. --- module/story/control.php | 11 ++++++----- module/story/ui/linkstory.html.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 32fe1e24e3..539ba0fd97 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -1413,11 +1413,12 @@ class story extends control $stories2Link = $this->story->getStories2Link($storyID, $browseType, $queryID, $pager); /* Assign. */ - $this->view->title = $this->lang->story->linkStory . "STORY" . $this->lang->hyphen .$this->lang->story->linkStory; - $this->view->type = $type; - $this->view->pager = $pager; - $this->view->stories2Link = $stories2Link; - $this->view->users = $this->loadModel('user')->getPairs('noletter'); + $this->view->title = $this->lang->story->linkStory . "STORY" . $this->lang->hyphen .$this->lang->story->linkStory; + $this->view->type = $type; + $this->view->pager = $pager; + $this->view->stories2Link = $stories2Link; + $this->view->maxGradeGroup = $this->story->getMaxGradeGroup(); + $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->display(); } diff --git a/module/story/ui/linkstory.html.php b/module/story/ui/linkstory.html.php index 70430d8a2d..a52fa5463a 100644 --- a/module/story/ui/linkstory.html.php +++ b/module/story/ui/linkstory.html.php @@ -29,7 +29,7 @@ $cols['title']['flex'] = 1; $cols = array_map(function($col){unset($col['sortType']); return $col;}, $cols); $data = array(); -foreach($stories2Link as $linkStory) $data[] = $this->story->formatStoryForList($linkStory); +foreach($stories2Link as $linkStory) $data[] = $this->story->formatStoryForList($linkStory, array(), $linkStory->type, $maxGradeGroup); modalHeader(set::title($lang->story->linkStory));