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
79217b14
Commit
79217b14
authored
May 25, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by Mark B. Hamby <mhamby@logicon.com> (somewhat hacked up by me) --
Allow case insensitive and regexp based searches for strings in bugs.
parent
2dc596b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
26 deletions
+44
-26
buglist.cgi
buglist.cgi
+5
-1
query.cgi
query.cgi
+39
-25
No files found.
buglist.cgi
View file @
79217b14
...
...
@@ -421,8 +421,12 @@ foreach my $f ("short_desc", "long_desc", "bug_file_loc",
$s
=
SqlQuote
(
$s
);
if
(
$::FORM
{
$f
.
"_type"
}
eq
"regexp"
)
{
$query
.=
"and $f regexp $s\n"
;
}
else
{
}
elsif
(
$::FORM
{
$f
.
"_type"
}
eq
"notregexp"
)
{
$query
.=
"and $f not regexp $s\n"
;
}
elsif
(
$::FORM
{
$f
.
"_type"
}
eq
"casesubstring"
)
{
$query
.=
"and instr($f, $s)\n"
;
}
else
{
$query
.=
"and instr(lower($f), lower($s))\n"
;
}
}
}
...
...
query.cgi
View file @
79217b14
...
...
@@ -68,7 +68,10 @@ foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
"emailassigned_to1"
,
"emailcc1"
,
"emailqa_contact1"
,
"email2"
,
"emailtype2"
,
"emailreporter2"
,
"emailassigned_to2"
,
"emailcc2"
,
"emailqa_contact2"
,
"changedin"
)
{
"changedin"
,
"short_desc"
,
"short_desc_type"
,
"long_desc"
,
"long_desc_type"
,
"bug_file_loc"
,
"bug_file_loc_type"
,
"status_whiteboard"
,
"status_whiteboard_type"
)
{
$default
{
$name
}
=
""
;
$type
{
$name
}
=
0
;
}
...
...
@@ -472,38 +475,49 @@ if (Param("usetargetmilestone")) {
</td>"
;
}
sub
StringSearch
{
my
(
$desc
,
$name
)
=
(
@_
);
my
$type
=
$name
.
"_type"
;
my
$def
=
value_quote
(
$default
{
$name
});
print
qq{<tr>
<td align=right>$desc:</td>
<td><input name=$name size=30 value="$def"></td>
<td><SELECT NAME=$type>
}
;
if
(
$default
{
$type
}
eq
""
)
{
$default
{
$type
}
=
"substring"
;
}
foreach
my
$i
([
"substring"
,
"case-insensitive substring"
],
[
"casesubstring"
,
"case-sensitive substring"
],
[
"regexp"
,
"regular expression"
],
[
"notregexp"
,
"not ( regular expression )"
])
{
my
(
$n
,
$d
)
=
(
@$i
);
my
$sel
=
""
;
if
(
$default
{
$type
}
eq
$n
)
{
$sel
=
" SELECTED"
;
}
print
qq{<OPTION VALUE="$n"$sel>$d\n}
;
}
print
"</SELECT></TD>
</tr>
"
;
}
print
"
</tr>
</table>
<table border=0>
<tr>
<td align=right>Summary:</td>
<td><input name=short_desc size=30></td>
<td><input type=radio name=short_desc_type value=substr checked>Substring</td>
<td><input type=radio name=short_desc_type value=regexp>Regexp</td>
</tr>
<tr>
<td align=right>Description:</td>
<td><input name=long_desc size=30></td>
<td><input type=radio name=long_desc_type value=substr checked>Substring</td>
<td><input type=radio name=long_desc_type value=regexp>Regexp</td>
</tr>
<tr>
<td align=right>URL:</td>
<td><input name=bug_file_loc size=30></td>
<td><input type=radio name=bug_file_loc_type value=substr checked>Substring</td>
<td><input type=radio name=bug_file_loc_type value=regexp>Regexp</td>
</tr>"
;
"
;
StringSearch
(
"Summary"
,
"short_desc"
);
StringSearch
(
"Description"
,
"long_desc"
);
StringSearch
(
"URL"
,
"bug_file_loc"
);
if
(
Param
(
"usestatuswhiteboard"
))
{
print
"
<tr>
<td align=right>Status whiteboard:</td>
<td><input name=status_whiteboard size=30></td>
<td><input type=radio name=status_whiteboard_type value=substr checked>Substring</td>
<td><input type=radio name=status_whiteboard_type value=regexp>Regexp</td>
</tr>"
;
StringSearch
(
"Status whiteboard"
,
"status_whiteboard"
);
}
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