From aacb447766dcadbdffa123b4caf4cdf350bc210f Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 13 Aug 2025 11:56:17 +0800 Subject: [PATCH] * [bug#64581,done,0.1h] format hours. --- module/story/ui/edit.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/ui/edit.html.php b/module/story/ui/edit.html.php index ee84e7c2c8..836b40fd2e 100644 --- a/module/story/ui/edit.html.php +++ b/module/story/ui/edit.html.php @@ -15,6 +15,7 @@ $uid = uniqid(); $canEditContent = str_contains(',draft,changing,', ",{$story->status},"); $forceReview = $this->story->checkForceReview($story->type); $assignedToList = $story->status == 'closed' ? array('closed' => 'Closed') : $users; +$storyEstimate = $story->estimate ? helper::formatHours($story->estimate) : 0; $planCount = !empty($story->planTitle) ? count($story->planTitle) : 0; $multiplePlan = ($product->type != 'normal' && empty($story->branch) && $planCount > 1) || ($story->type != 'story'); @@ -319,7 +320,7 @@ detailBody item ( set::name($lang->story->estimate), - $story->isParent == '0' ? input(set::name('estimate'), set::value($story->estimate ? helper::formatHours($story->estimate) : 0)) : $story->estimate + $story->isParent == '0' ? input(set::name('estimate'), set::value($storyEstimate)) : $storyEstimate ), item (