From 1f4a6997ca186b1365e4d011a5cda171a8608b2e Mon Sep 17 00:00:00 2001 From: Yagami Date: Wed, 17 May 2023 13:50:15 +0800 Subject: [PATCH] * Fix bug #35235. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 775b9fc668..149e37e9d3 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4645,7 +4645,7 @@ class storyModel extends model if($story->type != 'requirement' and $this->config->vision != 'lite') $menu .= $this->buildMenu('testcase', 'create', "productID=$story->product&branch=$story->branch&module=0&from=¶m=0&$params", $story, $type, 'sitemap', '', 'iframe showinonlybody', true, "data-app='{$this->app->tab}'"); $shadow = $this->dao->findByID($story->product)->from(TABLE_PRODUCT)->fetch('shadow'); - if($this->app->rawModule != 'projectstory' OR $this->config->vision == 'lite' OR $shadow) + if($this->app->rawModule != 'projectstory' OR $this->config->vision == 'lite' OR $shadow OR $story->type == 'requirement') { $isClick = $this->isClickable($story, 'batchcreate'); $title = $story->type == 'story' ? $this->lang->story->subdivideSR : $this->lang->story->subdivide;