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
d7e5d9fd
Commit
d7e5d9fd
authored
Jul 20, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 314364: Make QuickSearch use "matches" for comment searches instead of "substring"
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat
parent
75e51618
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
21 deletions
+3
-21
Query.pm
Bugzilla/Config/Query.pm
+0
-7
Quicksearch.pm
Bugzilla/Search/Quicksearch.pm
+3
-10
query.html.tmpl
template/en/default/admin/params/query.html.tmpl
+0
-4
No files found.
Bugzilla/Config/Query.pm
View file @
d7e5d9fd
...
...
@@ -68,13 +68,6 @@ sub get_param_list {
},
{
name
=>
'quicksearch_comment_cutoff'
,
type
=>
't'
,
default
=>
'4'
,
checker
=>
\&
check_numeric
},
{
name
=>
'specific_search_allow_empty_words'
,
type
=>
'b'
,
default
=>
1
...
...
Bugzilla/Search/Quicksearch.pm
View file @
d7e5d9fd
...
...
@@ -167,8 +167,6 @@ sub quicksearch {
$searchstring
=~
s/\s+NOT\s+/ -/g
;
my
@words
=
splitString
(
$searchstring
);
my
$searchComments
=
$#words
<
Bugzilla
->
params
->
{
'quicksearch_comment_cutoff'
};
my
@openStates
=
BUG_STATE_OPEN
;
my
@closedStates
;
my
@unknownFields
;
...
...
@@ -245,10 +243,8 @@ sub quicksearch {
}
}
elsif
(
$firstChar
eq
'#'
)
{
addChart
(
'short_desc'
,
'anywords'
,
$baseWord
,
$negate
);
if
(
$searchComments
)
{
addChart
(
'longdesc'
,
'anywords'
,
$baseWord
,
$negate
);
}
addChart
(
'short_desc'
,
'substring'
,
$baseWord
,
$negate
);
addChart
(
'content'
,
'matches'
,
$baseWord
,
$negate
);
}
elsif
(
$firstChar
eq
':'
)
{
foreach
(
@subWords
)
{
...
...
@@ -386,10 +382,7 @@ sub quicksearch {
addChart
(
'status_whiteboard'
,
'substring'
,
$word
,
$negate
);
}
if
(
$searchComments
)
{
addChart
(
'longdesc'
,
'substring'
,
$word
,
$negate
);
}
addChart
(
'content'
,
'matches'
,
$word
,
$negate
);
}
# URL field (for IP addrs, host.names,
# scheme://urls)
...
...
template/en/default/admin/params/query.html.tmpl
View file @
d7e5d9fd
...
...
@@ -51,10 +51,6 @@
"access the advanced query page. It's in URL parameter " _
"format, which makes it hard to read. Sorry!",
quicksearch_comment_cutoff => "The maximum number of search terms for a QuickSearch " _
"to search comments. If the QuickSearch query contains " _
"more terms than this value, QuickSearch will not search comments.",
specific_search_allow_empty_words => "Whether to allow a search on the 'Find a Specific " _
"Bug' page with an empty 'Words' field." }
%]
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