From d2c3dbd5d0691f94ddcd1c26a4e1eac9aa1f00da Mon Sep 17 00:00:00 2001 From: Yagami Date: Mon, 21 Nov 2022 14:39:01 +0800 Subject: [PATCH] * Finish task #76949. --- module/design/control.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/design/control.php b/module/design/control.php index 4e371238de..56b6f0cd86 100755 --- a/module/design/control.php +++ b/module/design/control.php @@ -76,6 +76,11 @@ class design extends control $this->session->set('reviewList', $this->app->getURI(true), 'project'); /* Build the search form. */ + $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); + $this->config->design->search['params']['story']['values'] = $stories; + $queryID = ($type == 'bySearch') ? (int)$param : 0; $actionURL = $this->createLink('design', 'browse', "projectID=$projectID&productID=$productID&type=bySearch&queryID=myQueryID"); $this->design->buildSearchForm($queryID, $actionURL);