* Fix error for story link requirement.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user