From c1a8053e98fa659ffda19fae799423c1762dbd10 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 21:36:02 +0000 Subject: Patch for bug 103636: Support specifying a date on which a bug is expected to be resolved; patch by Alexandre Michetti Manduca , r=jouni, a=myk. --- CGI.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index 822002957..165e5216c 100644 --- a/CGI.pl +++ b/CGI.pl @@ -358,7 +358,8 @@ sub GetBugActivity { # check if the user should see this field's activity if ($fieldname eq 'remaining_time' || $fieldname eq 'estimated_time' || - $fieldname eq 'work_time') { + $fieldname eq 'work_time' || + $fieldname eq 'deadline') { if (!UserInGroup(Param('timetrackinggroup'))) { $activity_visible = 0; @@ -391,6 +392,11 @@ sub GetBugActivity { $operation = {}; $changes = []; } + + if ($fieldname eq 'deadline') { + $removed = time2str("%Y-%m-%d", str2time($removed)); + $added = time2str("%Y-%m-%d", str2time($added)); + } $operation->{'who'} = $who; $operation->{'when'} = $when; -- cgit v1.2.3-24-g4f1b