* Make reuseing of 'allproduct' posible;
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
</div>
|
||||
<script language='Javascript'>
|
||||
$("#bysearchTab").toggle(
|
||||
function(){ $("#querybox").show(); $("#treebox").hide(); $(".divider").hide(); },
|
||||
function(){ $("#querybox").hide(); $("#treebox").show(); $(".divider").show(); } );
|
||||
function(){ $("#querybox").show(); },
|
||||
function(){ $("#querybox").hide(); } );
|
||||
</script>
|
||||
<div class='f-right'>
|
||||
<?php common::printLink('story', 'export', "productID=$productID&orderBy=$orderBy", $lang->export, '', 'class="export"'); ?>
|
||||
|
||||
Reference in New Issue
Block a user