From bbf7424e40607f39d0f8125734e0473373a212d6 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 30 Sep 2020 14:07:33 +0800 Subject: [PATCH] * Finish task #8089. --- module/testcase/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 5cbfc5505c..19606b9a36 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1298,7 +1298,8 @@ class testcase extends control { foreach($relatedFiles[$case->id] as $file) { - $case->files .= $file->title . '
'; + $fileURL = common::getSysURL() . $this->createLink('file', 'download', "fileID={$file->id}"); + $case->files .= html::a($fileURL, $file->title, '_blank') . '
'; } } }