From cc8c52ae8db643dd774691d522519b9882078938 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 30 Jun 2022 16:44:18 +0800 Subject: [PATCH 1/2] * Fix bug #24611. --- module/bug/control.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index 9d14a7a01c..5b8fa4fcf7 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -2259,6 +2259,13 @@ class bug extends control $bug->steps = str_replace(' ', ' ', $bug->steps); } + $bug->openedDate = !helper::isZeroDate($bug->openedDate) ? $bug->openedDate : ''; + $bug->assignedDate = !helper::isZeroDate($bug->assignedDate) ? $bug->assignedDate : ''; + $bug->resolvedDate = !helper::isZeroDate($bug->resolvedDate) ? $bug->resolvedDate : ''; + $bug->closedDate = !helper::isZeroDate($bug->closedDate) ? $bug->closedDate : ''; + $bug->lastEditedDate = !helper::isZeroDate($bug->lastEditedDate) ? $bug->lastEditedDate : ''; + $bug->deadline = !helper::isZeroDate($bug->deadline) ? $bug->deadline : ''; + /* fill some field with useful value. */ $bug->product = !isset($products[$bug->product]) ? '' : $products[$bug->product] . "(#$bug->product)"; $bug->project = !isset($projects[$bug->project]) ? '' : $projects[$bug->project] . "(#$bug->project)"; From d65ba3736da038a4a86ef5bf38ea9d139c5661ca Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 30 Jun 2022 16:44:36 +0800 Subject: [PATCH 2/2] * Fix bug #24609. --- module/testcase/control.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/testcase/control.php b/module/testcase/control.php index 70d766f8b5..fda3c10423 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1582,6 +1582,10 @@ class testcase extends control $case->real = ''; $result = isset($results[$case->id]) ? $results[$case->id] : array(); + $case->openedDate = !helper::isZeroDate($case->openedDate) ? $case->openedDate : ''; + $case->lastEditedDate = !helper::isZeroDate($case->lastEditedDate) ? $case->lastEditedDate : ''; + $case->lastRunDate = !helper::isZeroDate($case->lastRunDate) ? $case->lastRunDate : ''; + $case->real = ''; if(!empty($result) and !isset($relatedSteps[$case->id])) {