From 187d2637932ee8da5facadd670b3fa40fa248bfb Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 9 Apr 2024 10:41:09 +0800 Subject: [PATCH] * Fix bug #47132. --- 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 7e479f93f0..7b1205136f 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4856,7 +4856,7 @@ class storyModel extends model $moreActions = ''; $disabledFeatures = ",{$this->config->disabledFeatures},"; - if(($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false) + if($story->type != 'requirement' and ($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false) { $moreActions .= '
  • ' . html::a('#importToLib', " " . $this->lang->story->importToLib, '', 'class="btn" data-toggle="modal"') . '
  • '; }