From 94528ed5b0df9da374167fa8fdcc135cb59c32b7 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 26 Apr 2024 13:17:29 +0800 Subject: [PATCH] * Fix bug#48410. --- lib/zin/wg/linkedstorylist/v1.php | 2 +- module/story/model.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/zin/wg/linkedstorylist/v1.php b/lib/zin/wg/linkedstorylist/v1.php index 8c6f34a46e..71f8732724 100644 --- a/lib/zin/wg/linkedstorylist/v1.php +++ b/lib/zin/wg/linkedstorylist/v1.php @@ -90,7 +90,7 @@ class linkedStoryList extends storyList 'data-url' => str_replace('{id}', "$story->id", $this->unlinkUrl), 'data-params' => 'event', 'data-call' => 'unlinkStory', - 'hint' => $lang->story->unlinkStory + 'hint' => $story->type == 'requirement' ? str_replace($lang->SRCommon, $lang->URCommon, $lang->story->unlinkStory) : $lang->story->unlinkStory ); if(is_array($unlinkBtn)) $btn = array_merge($btn, $unlinkBtn); diff --git a/module/story/model.php b/module/story/model.php index 36c9e20c38..4e3d81715b 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3814,7 +3814,6 @@ class storyModel extends model $storyLang->legendLinkStories = str_replace($SRCommon, $URCommon, $storyLang->legendLinkStories); $storyLang->legendChildStories = str_replace($SRCommon, $URCommon, $storyLang->legendChildStories); $storyLang->legendSpec = str_replace($SRCommon, $URCommon, $storyLang->legendSpec); - $storyLang->unlinkStory = str_replace($SRCommon, $URCommon, $storyLang->unlinkStory); $storyLang->notice->closed = str_replace($SRCommon, $URCommon, $storyLang->notice->closed); $storyLang->notice->reviewerNotEmpty = str_replace($SRCommon, $URCommon, $storyLang->notice->reviewerNotEmpty);