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
c6c81144
Commit
c6c81144
authored
Jan 27, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow searches for "all keywords" or "no keywords"; fixed some other
bugs around keyword queries.
parent
afdd0f2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
15 deletions
+32
-15
buglist.cgi
buglist.cgi
+18
-2
query.cgi
query.cgi
+14
-13
No files found.
buglist.cgi
View file @
c6c81144
...
...
@@ -395,8 +395,24 @@ if ($::FORM{'keywords'}) {
}
if
(
@list
)
{
$query
=~
s/where/, keywords where/
;
$query
.=
"and keywords.bug_id = bugs.bug_id and ("
.
join
(
" $::FORM{'keywords_type'} "
,
@list
)
.
")\n"
;
my
$type
=
$::FORM
{
'keywords_type'
};
my
$notopt
=
""
;
if
(
$type
eq
"nowords"
)
{
# Ought to take advantage of keyword table somehow! ###
my
$extra
=
GetByWordList
(
"bugs.keywords"
,
$::FORM
{
'keywords'
},
"or"
);
$extra
=~
s/AND/AND NOT/i
;
$query
.=
$extra
;
}
else
{
$query
.=
"and keywords.bug_id = bugs.bug_id and $notopt ("
.
join
(
" or "
,
@list
)
.
")\n"
;
if
(
$type
eq
"allwords"
)
{
# This needs to be tuned to take better advantage of the
# keyword table!
$query
.=
GetByWordList
(
"bugs.keywords"
,
$::FORM
{
'keywords'
},
"and"
);
}
}
}
}
...
...
query.cgi
View file @
c6c81144
...
...
@@ -136,8 +136,8 @@ sub ProcessFormStuff {
"changedin"
,
"votes"
,
"short_desc"
,
"short_desc_type"
,
"long_desc"
,
"long_desc_type"
,
"bug_file_loc"
,
"bug_file_loc_type"
,
"status_whiteboard"
,
"status_whiteboard_type"
,
"
keywords"
,
"
bug_id"
,
"bugidtype"
)
{
"status_whiteboard_type"
,
"bug_id"
,
"bugidtype"
,
"keywords"
,
"keywords_type"
)
{
$default
{
$name
}
=
""
;
$type
{
$name
}
=
0
;
}
...
...
@@ -643,18 +643,19 @@ if (@::legal_keywords) {
print
qq{
<TR>
<TD ALIGN="right"><A HREF="describekeywords.cgi">Keywords</A>:</TD>
<TD><INPUT NAME="keywords" SIZE=30 VALUE=
$def
></TD>
<TD>
<SELECT NAME=keywords_type>
<TD><INPUT NAME="keywords" SIZE=30 VALUE=
"$def"
></TD>
<TD>
}
;
foreach
my
$i
([
"or"
,
"Any of the listed keywords set"
])
{
my
(
$n
,
$d
)
=
(
@$i
);
my
$sel
=
""
;
if
(
$default
{
"keywords"
}
eq
$n
)
{
$sel
=
" SELECTED"
;
}
print
qq{<OPTION VALUE="$n"$sel>$d\n}
;
}
print
qq{</SELECT></TD></TR>}
;
my
$type
=
$default
{
"keywords_type"
};
if
(
$type
eq
"or"
)
{
# Backward compatability hack.
$type
=
"anywords"
;
}
print
BuildPulldown
(
"keywords_type"
,
[[
"anywords"
,
"Any of the listed keywords set"
],
[
"allwords"
,
"All of the listed keywords set"
],
[
"nowords"
,
"None of the listed keywords set"
]],
$type
);
print
qq{</TD></TR>}
;
}
print
"
...
...
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