* Fix design search bug.
This commit is contained in:
@@ -68,7 +68,7 @@ class design extends control
|
||||
*
|
||||
* @param int $projectID
|
||||
* @param int $productID
|
||||
* @param string $type all|bysearch|HLDS|DDS|DBDS|ADS
|
||||
* @param string $type all|bySearch|HLDS|DDS|DBDS|ADS
|
||||
* @param int $param
|
||||
* @param string $orderBy
|
||||
* @param int $recTotal
|
||||
@@ -89,13 +89,13 @@ class design extends control
|
||||
$products = $this->product->getProductPairsByProject($projectID);
|
||||
$productIdList = $productID ? $productID : array_keys($products);
|
||||
$stories = $this->loadModel('story')->getProductStoryPairs($productIdList, 'all', 0, 'active', 'id_desc', 0, 'full', 'story', false);
|
||||
$queryID = $type == 'bysearch' ? $param : 0;
|
||||
$queryID = $type == 'bySearch' ? $param : 0;
|
||||
|
||||
/* Build Search Form. */
|
||||
$this->config->design->search['params']['story']['values'] = $stories;
|
||||
$this->config->design->search['params']['type']['values'] = $this->lang->design->typeList;
|
||||
|
||||
$this->config->design->search['actionURL'] = $this->createLink('design', 'browse', "projectID={$projectID}&productID={$productID}&type=bysearch&queryID=myQueryID");
|
||||
$this->config->design->search['actionURL'] = $this->createLink('design', 'browse', "projectID={$projectID}&productID={$productID}&type=bySearch&queryID=myQueryID");
|
||||
$this->config->design->search['queryID'] = $queryID;
|
||||
$this->loadModel('search')->setSearchParams($this->config->design->search);
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ jsVar('productID', $productID);
|
||||
/* zin: Define the set::module('design') feature bar on main menu. */
|
||||
featureBar
|
||||
(
|
||||
li(searchToggle(set::open($type == 'bysearch')))
|
||||
li(searchToggle(set::open($type == 'bySearch')))
|
||||
);
|
||||
|
||||
/* zin: Define the toolbar on main menu. */
|
||||
|
||||
Reference in New Issue
Block a user