From e7c8de396476e71a2ed973ceff597739a0e84296 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Fri, 4 Sep 2020 09:14:46 +0800 Subject: [PATCH] * Fix bug #3342. --- module/testcase/view/view.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index 1f5bb8081c..cc4b1e1927 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -189,7 +189,8 @@ testcase->story;?> storyTitle)) echo html::a($this->createLink('story', 'view', "storyID=$case->story", '', true), "#$case->story:$case->storyTitle", '', "class='iframe' data-width='80%'"); + $class = isonlybody() ? 'showinonlybody' : 'iframe'; + if(isset($case->storyTitle)) echo html::a($this->createLink('story', 'view', "storyID=$case->story", '', true), "#$case->story:$case->storyTitle", '', "class=$class data-width='80%'"); if($case->story and $case->storyStatus == 'active' and $case->latestStoryVersion > $case->storyVersion) { echo "({$lang->story->changed} ";