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
b96b7a4b
Commit
b96b7a4b
authored
Oct 02, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 601364: Make search.t *actually* do the basic field=value tests
r=mkanat, a=mkanat (module owner)
parent
255a2bf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
FieldTestNormal.pm
xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm
+7
-9
No files found.
xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm
View file @
b96b7a4b
...
...
@@ -42,17 +42,14 @@ sub name {
sub
search_params
{
my
(
$self
)
=
@_
;
return
$self
->
{
search_params
}
if
$self
->
{
search_params
};
my
$field
=
$self
->
field
;
my
$operator
=
$self
->
operator
;
$field
=~
s/\./_/g
;
my
$value
=
$self
->
translated_value
;
my
%
params
=
(
$field
=>
$value
,
"${field}_type"
=>
$self
->
operator
,
);
$self
->
{
search_params
}
=
\%
params
;
return
$self
->
{
search_params
};
if
(
$operator
eq
'anyexact'
)
{
$value
=
[
split
(
','
,
$value
)];
}
return
{
$field
=>
$value
,
"${field}_type"
=>
$self
->
operator
};
}
1
;
\ No newline at end of file
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