summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2014-03-08 22:12:44 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-03-08 22:12:44 +0100
commit40e2d5249b92c3a4efbe6fd3a300f6950b0cb14e (patch)
tree5fab73a81d547d9970ff329ae7e9db8df184a3c3
parentaa466eea71643200e3222cf5f3e127111281c052 (diff)
downloadbugzilla-40e2d5249b92c3a4efbe6fd3a300f6950b0cb14e.tar.gz
bugzilla-40e2d5249b92c3a4efbe6fd3a300f6950b0cb14e.tar.xz
Bug 318715 - iCalendar Buglist doesn't include deadline
r=dkl,a=justdave
-rwxr-xr-xbuglist.cgi3
-rw-r--r--template/en/default/list/list.ics.tmpl3
2 files changed, 6 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index ed716f2ff..e0a4a6aaa 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -553,6 +553,9 @@ if ($dotweak) {
if ($format->{'extension'} eq 'ics') {
push(@selectcolumns, "opendate") if !grep($_ eq 'opendate', @selectcolumns);
+ if (Bugzilla->params->{'timetrackinggroup'}) {
+ push(@selectcolumns, "deadline") if !grep($_ eq 'deadline', @selectcolumns);
+ }
}
if ($format->{'extension'} eq 'atom') {
diff --git a/template/en/default/list/list.ics.tmpl b/template/en/default/list/list.ics.tmpl
index 4295b4642..327ae171c 100644
--- a/template/en/default/list/list.ics.tmpl
+++ b/template/en/default/list/list.ics.tmpl
@@ -21,6 +21,9 @@ BEGIN:VTODO
[% IF bug.changeddate %]
[%+ bug.changedtime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('LAST-MODIFIED') +%]
[% END %]
+[% IF bug.deadline %]
+[%+ bug.deadline FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('DUE') +%]
+[% END %]
[% IF bug.percentage_complete %]
[%+ bug.percentage_complete FILTER format('%d') FILTER ics('PERCENT-COMPLETE') +%]
[% END %]