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
f6e2d728
Commit
f6e2d728
authored
Sep 19, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 686904: Removing an invalid URL from the See Also field crashes Bugzilla
r=timello a=LpSolit
parent
f856ddac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Bug.pm
Bugzilla/Bug.pm
+3
-2
No files found.
Bugzilla/Bug.pm
View file @
f6e2d728
...
...
@@ -2886,7 +2886,8 @@ sub remove_see_also {
# Since we remove also the url from the referenced bug,
# we need to notify changes for that bug too.
$removed_bug_url
=
$removed_bug_url
->
[
0
];
if
(
$removed_bug_url
->
isa
(
'Bugzilla::BugUrl::Bugzilla::Local'
)
if
(
$removed_bug_url
and
$removed_bug_url
->
isa
(
'Bugzilla::BugUrl::Bugzilla::Local'
)
and
defined
$removed_bug_url
->
ref_bug_url
)
{
push
@
{
$self
->
{
see_also_changes
}
},
...
...
@@ -3400,7 +3401,7 @@ sub reporter {
sub
see_also
{
my
(
$self
)
=
@_
;
return
[]
if
$self
->
{
'error'
};
if
(
!
defined
$self
->
{
see_also
})
{
if
(
!
exists
$self
->
{
see_also
})
{
my
$ids
=
Bugzilla
->
dbh
->
selectcol_arrayref
(
'SELECT id FROM bug_see_also WHERE bug_id = ?'
,
undef
,
$self
->
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