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
7ff5e333
Commit
7ff5e333
authored
Mar 18, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 553267: Allow specifying that you don't want flag data, for config.cgi
r=gerv, a=mkanat
parent
bec7e429
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
config.cgi
config.cgi
+9
-0
config.rdf.tmpl
template/en/default/config.rdf.tmpl
+4
-0
No files found.
config.cgi
View file @
7ff5e333
...
@@ -83,6 +83,15 @@ if ($cgi->param('product')) {
...
@@ -83,6 +83,15 @@ if ($cgi->param('product')) {
Bugzilla::Product::
preload
(
$vars
->
{
'products'
});
Bugzilla::Product::
preload
(
$vars
->
{
'products'
});
# Allow consumers to specify whether or not they want flag data.
if
(
defined
$cgi
->
param
(
'flags'
))
{
$vars
->
{
'show_flags'
}
=
$cgi
->
param
(
'flags'
);
}
else
{
# We default to sending flag data.
$vars
->
{
'show_flags'
}
=
1
;
}
# Create separate lists of open versus resolved statuses. This should really
# Create separate lists of open versus resolved statuses. This should really
# be made part of the configuration.
# be made part of the configuration.
my
@open_status
;
my
@open_status
;
...
...
template/en/default/config.rdf.tmpl
View file @
7ff5e333
...
@@ -163,6 +163,7 @@
...
@@ -163,6 +163,7 @@
<bz:component rdf:about="[% urlbase FILTER xml %]component.cgi?name=[% component.name FILTER url_quote
<bz:component rdf:about="[% urlbase FILTER xml %]component.cgi?name=[% component.name FILTER url_quote
%]&product=[% product.name FILTER url_quote %]">
%]&product=[% product.name FILTER url_quote %]">
<bz:name>[% component.name FILTER html %]</bz:name>
<bz:name>[% component.name FILTER html %]</bz:name>
[% IF show_flags %]
<bz:flag_types>
<bz:flag_types>
<Seq>
<Seq>
[% flag_types = component.flag_types.bug.merge(component.flag_types.attachment) %]
[% flag_types = component.flag_types.bug.merge(component.flag_types.attachment) %]
...
@@ -174,6 +175,7 @@
...
@@ -174,6 +175,7 @@
[% END %]
[% END %]
</Seq>
</Seq>
</bz:flag_types>
</bz:flag_types>
[% END %]
</bz:component>
</bz:component>
</li>
</li>
[% END %]
[% END %]
...
@@ -211,6 +213,7 @@
...
@@ -211,6 +213,7 @@
</bz:target_milestones>
</bz:target_milestones>
[% END %]
[% END %]
[% IF show_flags %]
<bz:flag_types>
<bz:flag_types>
<Seq>
<Seq>
[% FOREACH flag_type = all_visible_flag_types.values.sort('name') %]
[% FOREACH flag_type = all_visible_flag_types.values.sort('name') %]
...
@@ -233,6 +236,7 @@
...
@@ -233,6 +236,7 @@
[% END %]
[% END %]
</Seq>
</Seq>
</bz:flag_types>
</bz:flag_types>
[% END %]
<bz:fields>
<bz:fields>
<Seq>
<Seq>
...
...
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