Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0c35b2eb
Commit
0c35b2eb
authored
May 14, 2009
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 290631 - iCalendar export should include priority
r/a=mkanat
parent
502914d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
buglist.cgi
buglist.cgi
+11
-0
list.ics.tmpl
template/en/default/list/list.ics.tmpl
+1
-0
No files found.
buglist.cgi
View file @
0c35b2eb
...
...
@@ -1204,6 +1204,17 @@ $vars->{'displaycolumns'} = \@displaycolumns;
$vars
->
{
'openstates'
}
=
[
BUG_STATE_OPEN
];
$vars
->
{
'closedstates'
}
=
[
map
{
$_
->
name
}
closed_bug_statuses
()];
# The iCal file needs priorities ordered from 1 to 9 (highest to lowest)
# If there are more than 9 values, just make all the lower ones 9
if
(
$format
->
{
'extension'
}
eq
'ics'
)
{
my
$n
=
1
;
$vars
->
{
'ics_priorities'
}
=
{};
my
$priorities
=
get_legal_field_values
(
'priority'
);
foreach
my
$p
(
@$priorities
)
{
$vars
->
{
'ics_priorities'
}
->
{
$p
}
=
(
$n
>
9
)
?
9
:
$n
++
;
}
}
# The list of query fields in URL query string format, used when creating
# URLs to the same query results page with different parameters (such as
# a different sort order or when taking some action on the set of query
...
...
template/en/default/list/list.ics.tmpl
View file @
0c35b2eb
...
...
@@ -30,6 +30,7 @@ BEGIN:VTODO
[%+ PROCESS ics_url base_url=urlbase bug_id=bug.bug_id +%]
[%+ PROCESS ics_status bug_status = bug.bug_status +%]
[%+ PROCESS ics_dtstamp +%]
[%+ ics_priorities.${bug.priority} FILTER ics('PRIORITY') +%]
[% IF bug.changeddate %]
[%+ bug.changedtime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('LAST-MODIFIED') +%]
[% END %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment