* Fix bug #27665 and hidden product menu.

This commit is contained in:
liuruogu
2022-09-21 06:38:47 +00:00
parent bb90c3bdcd
commit 3d64493a75
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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);
}
+3
View File
@@ -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);