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
e2048ade
Commit
e2048ade
authored
Sep 01, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 592480: Only one person is added to CC list when multiple are specified
r=dkl a=LpSolit
parent
77b3adda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
process_bug.cgi
process_bug.cgi
+9
-13
No files found.
process_bug.cgi
View file @
e2048ade
...
...
@@ -287,37 +287,33 @@ foreach my $dep_field (qw(dependson blocked)) {
}
}
# Formulate the CC data into two arrays of users involved in this CC change.
my
(
@cc_add
,
@cc_remove
);
if
(
defined
$cgi
->
param
(
'newcc'
)
or
defined
$cgi
->
param
(
'addselfcc'
)
or
defined
$cgi
->
param
(
'removecc'
)
or
defined
$cgi
->
param
(
'masscc'
))
{
my
(
@cc_add
,
@cc_remove
);
# If masscc is defined, then we came from buglist and need to either add or
# remove cc's... otherwise, we came from show_bug and may need to do both.
my
(
$cc_add
,
$cc_remove
)
=
""
;
if
(
defined
$cgi
->
param
(
'masscc'
))
{
if
(
$cgi
->
param
(
'ccaction'
)
eq
'add'
)
{
$
cc_add
=
$cgi
->
param
(
'masscc'
);
@
cc_add
=
$cgi
->
param
(
'masscc'
);
}
elsif
(
$cgi
->
param
(
'ccaction'
)
eq
'remove'
)
{
$
cc_remove
=
$cgi
->
param
(
'masscc'
);
@
cc_remove
=
$cgi
->
param
(
'masscc'
);
}
}
else
{
$cc_add
=
$cgi
->
param
(
'newcc'
);
# We came from bug_form which uses a select box to determine what cc's
@cc_add
=
$cgi
->
param
(
'newcc'
);
push
(
@cc_add
,
Bugzilla
->
user
)
if
$cgi
->
param
(
'addselfcc'
);
# We came from show_bug which uses a select box to determine what cc's
# need to be removed...
if
(
$cgi
->
param
(
'removecc'
)
&&
$cgi
->
param
(
'cc'
))
{
$cc_remove
=
join
(
","
,
$cgi
->
param
(
'cc'
)
);
@cc_remove
=
$cgi
->
param
(
'cc'
);
}
}
push
(
@cc_add
,
split
(
/[\s,]+/
,
$cc_add
))
if
$cc_add
;
push
(
@cc_add
,
Bugzilla
->
user
)
if
$cgi
->
param
(
'addselfcc'
);
push
(
@cc_remove
,
split
(
/[\s,]+/
,
$cc_remove
))
if
$cc_remove
;
$set_all_fields
{
cc
}
=
{
add
=>
\
@cc_add
,
remove
=>
\
@cc_remove
};
}
$set_all_fields
{
cc
}
=
{
add
=>
\
@cc_add
,
remove
=>
\
@cc_remove
};
# Fields that can only be set on one bug at a time.
if
(
defined
$cgi
->
param
(
'id'
))
{
...
...
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