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
3272176a
Commit
3272176a
authored
Dec 19, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 819330: Bugzilla crashes when cloning a bug if the CC list is empty
r=dkl a=LpSolit
parent
387608ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
Bug.pm
Bugzilla/Bug.pm
+0
-2
Bug.pm
Bugzilla/WebService/Bug.pm
+1
-1
enter_bug.cgi
enter_bug.cgi
+1
-1
No files found.
Bugzilla/Bug.pm
View file @
3272176a
...
...
@@ -3199,8 +3199,6 @@ sub cc {
ORDER BY profiles.login_name}
,
undef
,
$self
->
bug_id
);
$self
->
{
'cc'
}
=
undef
if
!
scalar
(
@
{
$self
->
{
'cc'
}});
return
$self
->
{
'cc'
};
}
...
...
Bugzilla/WebService/Bug.pm
View file @
3272176a
...
...
@@ -882,7 +882,7 @@ sub _bug_to_hash {
$item
{
'blocks'
}
=
\
@blocks
;
}
if
(
filter_wants
$params
,
'cc'
)
{
my
@cc
=
map
{
$self
->
type
(
'email'
,
$_
)
}
@
{
$bug
->
cc
||
[]
};
my
@cc
=
map
{
$self
->
type
(
'email'
,
$_
)
}
@
{
$bug
->
cc
};
$item
{
'cc'
}
=
\
@cc
;
}
if
(
filter_wants
$params
,
'creator'
)
{
...
...
enter_bug.cgi
View file @
3272176a
...
...
@@ -208,7 +208,7 @@ if ($cloned_bug_id) {
$vars
->
{
'deadline'
}
=
$cloned_bug
->
deadline
;
$vars
->
{
'estimated_time'
}
=
$cloned_bug
->
estimated_time
;
if
(
defined
$cloned_bug
->
cc
)
{
if
(
scalar
@
{
$cloned_bug
->
cc
}
)
{
$vars
->
{
'cc'
}
=
join
(
", "
,
@
{
$cloned_bug
->
cc
});
}
else
{
$vars
->
{
'cc'
}
=
formvalue
(
'cc'
);
...
...
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