From fde21ff89779d3fe57df8cac2f5e8370b6b533c7 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 11 Nov 2022 17:06:48 +0800 Subject: [PATCH] * Fix bug#29549,#29654. --- module/doc/model.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 2ee7feff60..e6ad6802d3 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -930,13 +930,6 @@ 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'; @@ -960,7 +953,6 @@ class docModel extends model } else { - if(isset($queryName)) $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);