Merge branch 'sprint/max43_mayue_bug#26607' into 'master'
* Fix bug #26607. See merge request easycorp/zentaopms!5119
This commit is contained in:
@@ -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¶m=myQueryID");
|
||||
$this->doc->buildSearchForm(0, array(), 0, $actionURL, $type);
|
||||
|
||||
$moduleTree = $type == 'book' ? $this->doc->getBookStructure($libID) : $this->doc->getTreeMenu($type, $objectID, $libID, 0, $docID);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user