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
135afc0a
Commit
135afc0a
authored
Sep 26, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1071033: Variable "$user" will not stay shared at buglist.cgi
r=dkl a=sgreen
parent
03c85287
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
buglist.cgi
buglist.cgi
+4
-5
No files found.
buglist.cgi
View file @
135afc0a
...
...
@@ -283,6 +283,7 @@ sub GetGroups {
sub
_get_common_flag_types
{
my
$component_ids
=
shift
;
my
$user
=
Bugzilla
->
user
;
# Get all the different components in the bug list
my
$components
=
Bugzilla::
Component
->
new_from_list
(
$component_ids
);
...
...
@@ -303,12 +304,10 @@ sub _get_common_flag_types {
if
$flag_type_count
==
scalar
@$components
;
}
# We only show flags that a user
has request or set rights on
# We only show flags that a user
can request.
my
@show_flag_types
=
grep
{
$user
->
can_request_flag
(
$_
)
||
$user
->
can_set_flag
(
$_
)
}
values
%
common_flag_types
;
my
$any_flags_requesteeble
=
grep
(
$_
->
is_requesteeble
,
@show_flag_types
);
=
grep
{
$user
->
can_request_flag
(
$_
)
}
values
%
common_flag_types
;
my
$any_flags_requesteeble
=
grep
{
$_
->
is_requesteeble
}
@show_flag_types
;
return
(
\
@show_flag_types
,
$any_flags_requesteeble
);
}
...
...
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