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
d6c2254c
Commit
d6c2254c
authored
Oct 08, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to query by votes.
parent
4abcff37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
buglist.cgi
buglist.cgi
+26
-0
query.cgi
query.cgi
+14
-4
No files found.
buglist.cgi
View file @
d6c2254c
...
@@ -182,6 +182,26 @@ if (defined $::COOKIE{'COLUMNLIST'}) {
...
@@ -182,6 +182,26 @@ if (defined $::COOKIE{'COLUMNLIST'}) {
@collist
=
@::default_column_list
;
@collist
=
@::default_column_list
;
}
}
my
$minvotes
;
my
$votecolnum
;
if
(
defined
$::FORM
{
'votes'
})
{
my
$c
=
trim
(
$::FORM
{
'votes'
});
if
(
$c
ne
""
)
{
if
(
$c
!~
/^[0-9]*$/
)
{
print
"\n\n<P>The 'At least ___ votes' field must be a simple "
;
print
"number. You entered \"$c\", which doesn't cut it."
;
print
"<P>Please click the <B>Back</B> button and try again.\n"
;
exit
;
}
$minvotes
=
$c
;
if
(
!
(
grep
{
/^votes$/
}
@collist
))
{
push
(
@collist
,
'votes'
);
}
$votecolnum
=
lsearch
(
\
@collist
,
'votes'
);
}
}
my
$dotweak
=
defined
$::FORM
{
'tweak'
};
my
$dotweak
=
defined
$::FORM
{
'tweak'
};
if
(
$dotweak
)
{
if
(
$dotweak
)
{
...
@@ -346,6 +366,7 @@ if (defined $::FORM{'changedin'}) {
...
@@ -346,6 +366,7 @@ if (defined $::FORM{'changedin'}) {
}
}
}
}
my
$ref
=
$::MFORM
{
'chfield'
};
my
$ref
=
$::MFORM
{
'chfield'
};
...
@@ -531,6 +552,11 @@ while (@row = FetchSQLData()) {
...
@@ -531,6 +552,11 @@ while (@row = FetchSQLData()) {
# the same group. If they don't, we leave
# the same group. If they don't, we leave
# it alone.
# it alone.
}
}
if
(
defined
$minvotes
)
{
if
(
$row
[
$votecolnum
]
<
$minvotes
)
{
next
;
}
}
if
(
!
defined
$seen
{
$bug_id
})
{
if
(
!
defined
$seen
{
$bug_id
})
{
$seen
{
$bug_id
}
=
1
;
$seen
{
$bug_id
}
=
1
;
$count
++
;
$count
++
;
...
...
query.cgi
View file @
d6c2254c
...
@@ -68,7 +68,7 @@ foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
...
@@ -68,7 +68,7 @@ foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
"emailassigned_to1"
,
"emailcc1"
,
"emailqa_contact1"
,
"emailassigned_to1"
,
"emailcc1"
,
"emailqa_contact1"
,
"email2"
,
"emailtype2"
,
"emailreporter2"
,
"email2"
,
"emailtype2"
,
"emailreporter2"
,
"emailassigned_to2"
,
"emailcc2"
,
"emailqa_contact2"
,
"emailassigned_to2"
,
"emailcc2"
,
"emailqa_contact2"
,
"changedin"
,
"short_desc"
,
"short_desc_type"
,
"changedin"
,
"
votes"
,
"
short_desc"
,
"short_desc_type"
,
"long_desc"
,
"long_desc_type"
,
"bug_file_loc"
,
"long_desc"
,
"long_desc_type"
,
"bug_file_loc"
,
"bug_file_loc_type"
,
"status_whiteboard"
,
"bug_file_loc_type"
,
"status_whiteboard"
,
"status_whiteboard_type"
)
{
"status_whiteboard_type"
)
{
...
@@ -407,12 +407,22 @@ print "
...
@@ -407,12 +407,22 @@ print "
</table>
</table>
<p>
<p>
<table>
<tr><td colspan=2>
$emailinput1<p>
$emailinput1<p>
</td></tr><tr><td colspan=2>
$emailinput2<p>
$emailinput2<p>
</td></tr>
<tr>
<td>
Changed in the <NOBR>last <INPUT NAME=changedin SIZE=2 VALUE=\"$default{'changedin'}\"> days.</NOBR>
Changed in the <NOBR>last <INPUT NAME=changedin SIZE=2 VALUE=\"$default{'changedin'}\"> days.</NOBR>
</td>
<td align=right>
At <NOBR>least <INPUT NAME=votes SIZE=3 VALUE=\"$default{'votes'}\"> votes.</NOBR>
</tr>
</table>
<table>
<table>
<tr>
<tr>
...
...
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