summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-16 22:36:02 +0100
committerjocuri%softhome.net <>2005-01-16 22:36:02 +0100
commitc1a8053e98fa659ffda19fae799423c1762dbd10 (patch)
tree73c2a248c499ee3b7a811d3dbca07c14078e3069 /CGI.pl
parentce3c5ed7f0c8c4426b3717c169674edfe7a16556 (diff)
downloadbugzilla-c1a8053e98fa659ffda19fae799423c1762dbd10.tar.gz
bugzilla-c1a8053e98fa659ffda19fae799423c1762dbd10.tar.xz
Patch for bug 103636: Support specifying a date on which a bug is expected to be resolved; patch by Alexandre Michetti Manduca <michetti@grad.icmc.usp.br>, r=jouni, a=myk.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl8
1 files changed, 7 insertions, 1 deletions
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;