From db71bb855c43199d593dabff5a66e792c4bfddd4 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 18 Jul 2023 13:41:31 +0800 Subject: [PATCH] * Finish task #97654. --- module/story/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 1fd407798c..c31b6a2ab7 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4522,6 +4522,7 @@ class storyModel extends model */ public static function isClickable($story, $action) { + global $app, $config; $action = strtolower($action); if($action == 'recall') return strpos('reviewing,changing', $story->status) !== false; @@ -4531,8 +4532,8 @@ class storyModel extends model if($action == 'batchcreate' and $story->parent > 0) return false; if($action == 'batchcreate' and !empty($story->twins)) return false; if($action == 'batchcreate' and $story->type == 'requirement' and $story->status != 'closed') return strpos('draft,reviewing,changing', $story->status) === false; + if($action == 'submitreview' and strpos('draft,changing', $story->status) === false) return false; - global $app, $config; static $shadowProducts = array(); static $hasShadow = true; if($hasShadow and empty($shadowProducts[$story->product]))