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
952d1ad6
Commit
952d1ad6
authored
Nov 05, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 173571 - Turn "all selected" into "none selected" for efficiency. Patch by gerv; r=justdave.
parent
807d3057
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
Search.pm
Bugzilla/Search.pm
+20
-0
No files found.
Bugzilla/Search.pm
View file @
952d1ad6
...
...
@@ -68,6 +68,8 @@ sub init {
my
@specialchart
;
my
@andlist
;
&::
GetVersionTable
();
# First, deal with all the old hard-coded non-chart-based poop.
if
(
lsearch
(
$fieldsref
,
'map_assigned_to.login_name'
)
>=
0
||
lsearch
(
$fieldsref
,
'map_assigned_to.realname'
)
>=
0
)
{
...
...
@@ -116,6 +118,24 @@ sub init {
push
(
@specialchart
,
[
"bug_id"
,
$type
,
join
(
','
,
$params
->
param
(
'bug_id'
))]);
}
# If the user has selected all of either status or resolution, change to
# selecting none. This is functionally equivalent, but quite a lot faster.
if
(
$params
->
param
(
'bug_status'
))
{
my
@bug_statuses
=
$params
->
param
(
'bug_status'
);
if
(
scalar
(
@bug_statuses
)
==
scalar
(
@::legal_bug_status
))
{
$params
->
delete
(
'bug_status'
);
}
}
if
(
$params
->
param
(
'resolution'
))
{
my
@resolutions
=
$params
->
param
(
'resolution'
);
if
(
scalar
(
@resolutions
)
==
scalar
(
@::legal_resolution
))
{
$params
->
delete
(
'resolution'
);
}
}
my
@legal_fields
=
(
"product"
,
"version"
,
"rep_platform"
,
"op_sys"
,
"bug_status"
,
"resolution"
,
"priority"
,
"bug_severity"
,
"assigned_to"
,
"reporter"
,
"component"
,
...
...
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