From cf6845878fb2c0a27198db7d7d2aa5e93ee2a064 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 26 Jul 2022 02:21:28 +0000 Subject: [PATCH] * Fix bug. --- module/bug/view/batchedit.html.php | 2 +- module/bug/view/view.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/view/batchedit.html.php b/module/bug/view/batchedit.html.php index 625c95320d..68d5f4bd91 100644 --- a/module/bug/view/batchedit.html.php +++ b/module/bug/view/batchedit.html.php @@ -133,7 +133,7 @@ } ?> ' style='overflow:visible'>assignedTo, "class='form-control picker-select' data-drop-width='135px'");?> - ' style='overflow:visible'>deadline) ? '' : substr($bug->deadline, 5, 11), "class='form-control form-date'");?> + ' style='overflow:visible'>deadline) ? '' : $bug->deadline, "class='form-control form-date'");?> >os, 'class=form-control');?> >browser, 'class=form-control');?> >keywords, 'class=form-control');?> diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index 10b13c2d9e..8fb36fbcbd 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -224,7 +224,7 @@ bug->deadline;?> deadline) echo helper::isZeroDate($bug->deadline) ? '' : substr($bug->deadline, 5, 11); + if($bug->deadline) echo helper::isZeroDate($bug->deadline) ? '' : $bug->deadline; if(isset($bug->delay)) printf($lang->bug->delayWarning, $bug->delay); ?>