Merge branch 'sprint/max43_mayue_bug#26607' into 'master'

* Fix bug #26607.

See merge request easycorp/zentaopms!5119
This commit is contained in:
孙广明
2022-08-25 09:10:28 +00:00
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1125,7 +1125,7 @@ class doc extends control
/* Set Custom. */
foreach(explode(',', $this->config->doc->customObjectLibs) as $libType) $customObjectLibs[$libType] = $this->lang->doc->customObjectLibs[$libType];
$actionURL = $this->createLink('doc', 'browse', "lib=0&browseType=bySearch&queryID=myQueryID");
$actionURL = $this->createLink('doc', 'tableContents', "type=$type&objectID=$objectID&libID=$libID&browseType=bySearch&param=myQueryID");
$this->doc->buildSearchForm(0, array(), 0, $actionURL, $type);
$moduleTree = $type == 'book' ? $this->doc->getBookStructure($libID) : $this->doc->getTreeMenu($type, $objectID, $libID, 0, $docID);
+8
View File
@@ -930,6 +930,13 @@ class docModel extends model
{
$this->loadModel('product');
/* Fixed search modal for doc view. */
if($this->app->getMethodName() == 'objectlibs')
{
$queryName = $type . 'Doc';
$type = 'objectLibs';
}
if($this->app->rawMethod == 'contribute')
{
$this->config->doc->search['module'] = 'contributeDoc';
@@ -953,6 +960,7 @@ class docModel extends model
}
else
{
$this->config->doc->search['module'] = $queryName;
$products = $this->product->getPairs('nocode', $this->session->project);
$this->config->doc->search['params']['execution']['values'] = array('' => '') + $this->loadModel('execution')->getPairs($this->session->project, 'all', 'noclosed') + array('all' => $this->lang->doc->allExecutions);
$this->config->doc->search['params']['lib']['values'] = array('' => '', $libID => ($libID ? $libs[$libID] : 0), 'all' => $this->lang->doclib->all);