This commit is contained in:
mayue
2022-08-25 16:55:27 +08:00
parent 3c7a896b3a
commit bc938caaa4
+7 -1
View File
@@ -930,7 +930,12 @@ class docModel extends model
{
$this->loadModel('product');
if($this->app->getMethodName() == 'objectlibs') $type = 'objectlibs';
/* Fixed search modal for doc view. */
if($this->app->getMethodName() == 'objectlibs')
{
$queryName = $type . 'Doc';
$type = 'objectlibs';
}
if($this->app->rawMethod == 'contribute')
{
@@ -955,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);