From aa2e07e64d494ec76ef09e6c43e3798c236eb735 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 11 Sep 2024 16:12:58 +0800 Subject: [PATCH] * [bug#55204,done,1h] The module should be executionStory. --- module/custom/model.php | 1 + module/execution/model.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/module/custom/model.php b/module/custom/model.php index 043fc419da..04b282f250 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -509,6 +509,7 @@ class customModel extends model global $lang, $app; if(!isset($lang->$module->featureBar[$method])) return; $queryModule = $module == 'execution' ? 'task' : ($module == 'product' ? 'story' : $module); + $queryModule = $module == 'execution' && $method == 'story' ? 'executionStory' : $queryModule; $shortcuts = $app->dbQuery('select id, title from ' . TABLE_USERQUERY . " where (`account` = '{$app->user->account}' or `common` = '1') AND `module` = '{$queryModule}' AND `shortcut` = '1' order by id")->fetchAll(); if($shortcuts) diff --git a/module/execution/model.php b/module/execution/model.php index 6881e14d1c..0c82aa5db9 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2353,6 +2353,8 @@ class executionModel extends model $this->config->product->search['params']['grade']['values'] = $gradePairs; + $this->config->product->search['onMenuBar'] = 'yes'; + $this->loadModel('search')->setSearchParams($this->config->product->search); }