From 55dc4e1d29fef5d905ffcf9f42da64f5c18cc91e Mon Sep 17 00:00:00 2001 From: z Date: Mon, 20 Jul 2020 15:10:55 +0800 Subject: [PATCH] * adjust for edit testreport. --- module/testreport/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testreport/control.php b/module/testreport/control.php index 2824f29e6b..93f290af85 100644 --- a/module/testreport/control.php +++ b/module/testreport/control.php @@ -345,7 +345,7 @@ class testreport extends control $productIdList[$report->product] = $report->product; $builds = $this->build->getByList($report->builds); - $stories = $this->story->getProjectStories($project->id); + $stories = !empty($builds) ? $this->testreport->getStories4Test($builds) : $this->story->getProjectStories($project->id);; $bugs = $this->testreport->getBugs4Test($builds, $productIdList, $report->begin, $report->end, 'project'); }