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
d500177f
Commit
d500177f
authored
Jul 08, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 577575: If percentage_complete is a column in the buglist, remaining_time
must also be selected from the database for PostgreSQL. r=mkanat, a=mkanat (module owner)
parent
2e756dd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Search.pm
Bugzilla/Search.pm
+9
-0
No files found.
Bugzilla/Search.pm
View file @
d500177f
...
...
@@ -538,6 +538,15 @@ sub init {
push
(
@supptables
,
"LEFT JOIN keywords ON keywords.bug_id = bugs.bug_id"
);
push
(
@supptables
,
"LEFT JOIN keyworddefs ON keyworddefs.id = keywords.keywordid"
);
}
# Calculating percentage_complete requires remaining_time. Mostly,
# we just need remaining_time in the GROUP_BY, but it simplifies
# things to just add it in the SELECT.
if
(
grep
(
$_
eq
'percentage_complete'
,
@fields
)
and
!
grep
(
$_
eq
'remaining_time'
,
@fields
))
{
push
(
@fields
,
'remaining_time'
);
}
# If the user has selected all of either status or resolution, change to
# selecting none. This is functionally equivalent, but quite a lot faster.
...
...
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