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
d89140b0
Commit
d89140b0
authored
Aug 11, 2006
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 348070: An arrayref is always "true" - Patch by Frédéric Buclin <LpSolit@gmail.com> a=myk
parent
91986ae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Flag.pm
Bugzilla/Flag.pm
+4
-2
No files found.
Bugzilla/Flag.pm
View file @
d89140b0
...
...
@@ -838,12 +838,14 @@ sub notify {
# to make sure we don't send email about it to unauthorized users
# on the request type's CC: list, so we have to trawl the list for users
# not in those groups or email addresses that don't have an account.
if
(
$bug
->
groups
||
$attachment_is_private
)
{
my
@bug_in_groups
=
grep
{
$_
->
{
'ison'
}
||
$_
->
{
'mandatory'
}}
@
{
$bug
->
groups
};
if
(
scalar
(
@bug_in_groups
)
||
$attachment_is_private
)
{
my
@new_cc_list
;
foreach
my
$cc
(
split
(
/[, ]+/
,
$flag
->
type
->
cc_list
))
{
my
$ccuser
=
Bugzilla::
User
->
new_from_login
(
$cc
)
||
next
;
next
if
(
$bug
->
groups
&&
!
$ccuser
->
can_see_bug
(
$bug
->
bug_id
));
next
if
(
scalar
(
@bug_in_groups
)
&&
!
$ccuser
->
can_see_bug
(
$bug
->
bug_id
));
next
if
$attachment_is_private
&&
Bugzilla
->
params
->
{
"insidergroup"
}
&&
!
$ccuser
->
in_group
(
Bugzilla
->
params
->
{
"insidergroup"
});
...
...
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