* Fix bug #27665 and hidden product menu.
This commit is contained in:
@@ -120,6 +120,8 @@ class executionModel extends model
|
||||
$this->cookie->executionMode = 'all';
|
||||
}
|
||||
|
||||
if(empty($execution->hasProduct)) unset($this->lang->execution->menu->settings['subMenu']->products);
|
||||
|
||||
$this->lang->switcherMenu = $this->getSwitcher($executionID, $this->app->rawModule, $this->app->rawMethod);
|
||||
common::setMenuVars('execution', $executionID);
|
||||
}
|
||||
|
||||
@@ -2229,6 +2229,7 @@ class story extends control
|
||||
$story = $this->story->getById($storyID);
|
||||
$products = $this->product->getPairs('', 0, '', true);
|
||||
$queryID = 0;
|
||||
$product = $this->product->getByID($story->product);
|
||||
|
||||
/* Change for requirement story title. */
|
||||
if($story->type == 'story')
|
||||
@@ -2244,6 +2245,8 @@ 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']);
|
||||
|
||||
/* Build search form. */
|
||||
$actionURL = $this->createLink('story', 'linkStory', "storyID=$storyID&type=$type&linkedStoryID=$linkedStoryID&browseType=bySearch&queryID=myQueryID&storyType=$storyType", '', true);
|
||||
$this->product->buildSearchForm($story->product, $products, $queryID, $actionURL);
|
||||
|
||||
Reference in New Issue
Block a user