* [bug#55204,done,1h] The module should be executionStory.

This commit is contained in:
hufangzhou
2024-09-11 16:29:14 +08:00
committed by 王于听
parent 31a9d86a2d
commit aa2e07e64d
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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)