diff --git a/module/product/control.php b/module/product/control.php index d139553fb0..83c4085fcd 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -61,6 +61,7 @@ class product extends control */ public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { + $this->loadModel('bug'); /* Lower browse type. */ $browseType = strtolower($browseType); @@ -144,7 +145,7 @@ class product extends control $this->config->product->search['actionURL'] = $this->createLink('product', 'browse', "productID=$productID&browseType=bySearch&queryID=myQueryID"); $this->config->product->search['queryID'] = $queryID; $this->config->product->search['params']['plan']['values'] = $this->loadModel('productplan')->getPairs($productID); - $this->config->product->search['params']['product']['values'] = array($productID => $this->products[$productID], 'all' => $this->lang->product->allProduct); + $this->config->product->search['params']['product']['values'] = array($productID => $this->products[$productID], 'all' => $this->lang->bug->allProduct); $this->view->searchForm = $this->fetch('search', 'buildForm', $this->config->product->search); $this->view->productID = $productID; diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 65306c539f..2953d096fb 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -21,8 +21,8 @@