From 0611a739fe1d62ee98c6a02583a53e24813eebdb Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 29 Jan 2021 15:24:30 +0800 Subject: [PATCH] * Finish task #9118. --- module/user/control.php | 6 +++++- module/user/view/story.html.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/user/control.php b/module/user/control.php index 4443b0453f..b86be4ee0c 100644 --- a/module/user/control.php +++ b/module/user/control.php @@ -130,10 +130,14 @@ class user extends control /* Change the menu when in my module. */ $this->resetMenu(); + /* Modify story title. */ + $this->loadModel('story'); + if($storyType == 'requirement') $this->lang->story->title = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title); + /* Assign. */ $this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->story; $this->view->position[] = $this->lang->user->story; - $this->view->stories = $this->loadModel('story')->getUserStories($account, $type, 'id_desc', $pager, $storyType); + $this->view->stories = $this->story->getUserStories($account, $type, 'id_desc', $pager, $storyType); $this->view->users = $this->user->getPairs('noletter'); $this->view->storyType = $storyType; $this->view->type = $type; diff --git a/module/user/view/story.html.php b/module/user/view/story.html.php index 585ba774cb..01a69ad966 100644 --- a/module/user/view/story.html.php +++ b/module/user/view/story.html.php @@ -43,7 +43,7 @@ story->title;?> story->plan;?> openedByAB;?> - story->estimateAB;?> + story->estimateAB;?> statusAB;?> story->stageAB;?>