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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
f4c15fd2
Commit
f4c15fd2
authored
Feb 11, 2011
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the "changedfrom" xt/search.t test work with see_also, again.
https://bugzilla.mozilla.org/show_bug.cgi?id=620827
parent
9357849d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Search.pm
xt/lib/Bugzilla/Test/Search.pm
+7
-3
No files found.
xt/lib/Bugzilla/Test/Search.pm
View file @
f4c15fd2
...
...
@@ -228,9 +228,11 @@ sub bug_create_value {
if
(
$number
==
6
and
$field
ne
'alias'
)
{
$number
=
1
;
}
my
$value
=
$self
->
_bug_create_values
->
{
$number
}
->
{
$field
};
return
$value
if
defined
$value
;
return
$self
->
_extra_bug_create_values
->
{
$number
}
->
{
$field
};
my
$extra_values
=
$self
->
_extra_bug_create_values
->
{
$number
};
if
(
exists
$extra_values
->
{
$field
})
{
return
$extra_values
->
{
$field
};
}
return
$self
->
_bug_create_values
->
{
$number
}
->
{
$field
};
}
sub
bug_update_value
{
my
(
$self
,
$number
,
$field
)
=
@_
;
...
...
@@ -637,6 +639,7 @@ sub _create_one_bug {
$dbh
->
do
(
'UPDATE longdescs SET bug_when = ? WHERE bug_id = ?'
,
undef
,
$ts
,
$bug
->
id
);
$bug
->
{
creation_ts
}
=
$ts
;
$extra_values
->
{
see_also
}
=
[]
;
}
else
{
# Manually set the creation_ts so that each bug has a different one.
...
...
@@ -657,6 +660,7 @@ sub _create_one_bug {
undef
,
$creation_ts
,
$status
,
$resolution
,
$bug
->
id
);
$dbh
->
do
(
'INSERT INTO bug_see_also (bug_id, value, class) VALUES (?,?,?)'
,
undef
,
$bug
->
id
,
$see_also
,
'Bugzilla::BugUrl::Bugzilla'
);
$extra_values
->
{
see_also
}
=
$bug
->
see_also
;
if
(
$number
==
1
)
{
# Bug 1 needs to start off with reporter_accessible and
...
...
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