diff --git a/module/story/control.php b/module/story/control.php index eb011327be..05b367bd7c 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -2359,7 +2359,6 @@ 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 @@ -2367,7 +2366,11 @@ class story extends control $this->lang->story->title = str_replace($this->lang->URCommon, $this->lang->SRCommon, $this->lang->story->title); } - 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);