Commit 40e2d524 authored by Matt Selsky's avatar Matt Selsky Committed by Dave Lawrence

Bug 318715 - iCalendar Buglist doesn't include deadline

r=dkl,a=justdave
parent aa466eea
...@@ -553,6 +553,9 @@ if ($dotweak) { ...@@ -553,6 +553,9 @@ if ($dotweak) {
if ($format->{'extension'} eq 'ics') { if ($format->{'extension'} eq 'ics') {
push(@selectcolumns, "opendate") if !grep($_ eq 'opendate', @selectcolumns); 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') { if ($format->{'extension'} eq 'atom') {
......
...@@ -21,6 +21,9 @@ BEGIN:VTODO ...@@ -21,6 +21,9 @@ BEGIN:VTODO
[% IF bug.changeddate %] [% IF bug.changeddate %]
[%+ bug.changedtime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('LAST-MODIFIED') +%] [%+ bug.changedtime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('LAST-MODIFIED') +%]
[% END %] [% END %]
[% IF bug.deadline %]
[%+ bug.deadline FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('DUE') +%]
[% END %]
[% IF bug.percentage_complete %] [% IF bug.percentage_complete %]
[%+ bug.percentage_complete FILTER format('%d') FILTER ics('PERCENT-COMPLETE') +%] [%+ bug.percentage_complete FILTER format('%d') FILTER ics('PERCENT-COMPLETE') +%]
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment