From e01af56f7ed6dc810be5cade5851ee8d1cc8a9de Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 31 Oct 2024 06:28:29 +0000 Subject: [PATCH] * [task#131512,done,0.2h] fix bug. --- module/story/zen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/zen.php b/module/story/zen.php index d45a5b98a5..7d8b2654ff 100644 --- a/module/story/zen.php +++ b/module/story/zen.php @@ -837,7 +837,7 @@ class storyZen extends story $fields['reviewedDate']['default'] = helper::now(); $fields['assignedTo']['default'] = $story->assignedTo; $fields['pri']['default'] = $story->pri; - $fields['estimate']['default'] = $story->estimate; + $fields['estimate']['default'] = $story->estimate ? $story->estimate : 0; $fields['status']['default'] = $story->status; $fields['closedReason']['required'] = true;