From 314ab3224a76f5d1ccf3d739fc004cd0fdb86d58 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 16:54:01 +0800 Subject: [PATCH 1/2] * Fix Task #77261 --- module/story/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index eb011327be..be6e173c63 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -2359,13 +2359,13 @@ class story extends control $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']); } else { $this->lang->story->title = str_replace($this->lang->URCommon, $this->lang->SRCommon, $this->lang->story->title); } + unset($this->config->product->search['fields']['plan']); if(!empty($product->shadow)) unset($this->config->product->search['fields']['product']); From a11d496c0bc46a9cb02ccdd7619ee91904e5abbc Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 22 Nov 2022 16:55:48 +0800 Subject: [PATCH 2/2] * Fix Task #77261 --- module/story/control.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index be6e173c63..05b367bd7c 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -2365,9 +2365,12 @@ class story extends control { $this->lang->story->title = str_replace($this->lang->URCommon, $this->lang->SRCommon, $this->lang->story->title); } - unset($this->config->product->search['fields']['plan']); - if(!empty($product->shadow)) unset($this->config->product->search['fields']['product']); + if(!empty($product->shadow)) + { + unset($this->config->product->search['fields']['plan']); + unset($this->config->product->search['fields']['product']); + } /* Build search form. */ $actionURL = $this->createLink('story', 'linkStory', "storyID=$storyID&type=$type&linkedStoryID=$linkedStoryID&browseType=bySearch&queryID=myQueryID&storyType=$storyType", '', true);