From 2366219f2aa806c054510d74d6587db807187f9c Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Mon, 21 Jun 2021 14:37:19 +0800 Subject: [PATCH] * Fix error for story link requirement. --- module/story/control.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/story/control.php b/module/story/control.php index 0d13439ef8..df9aab2deb 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1610,6 +1610,16 @@ class story extends control $products = $this->product->getPairs(); $queryID = 0; + /* Change for requirement story title. */ + if($story->type == 'story') + { + $this->lang->story->title = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title); + $this->lang->story->create = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->create); + $this->config->product->search['fields']['title'] = $this->lang->story->title; + unset($this->config->product->search['fields']['plan']); + unset($this->config->product->search['fields']['stage']); + } + /* Build search form. */ $actionURL = $this->createLink('story', 'linkStory', "storyID=$storyID&type=$type&linkedStoryID=$linkedStoryID&browseType=bySearch&queryID=myQueryID", '', true); $this->product->buildSearchForm($story->product, $products, $queryID, $actionURL);