* Fix design search bug.

This commit is contained in:
wangyuting
2024-04-30 13:36:12 +08:00
parent b0bae9d1b5
commit 5e94b0ef3f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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);
+1 -1
View File
@@ -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. */