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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d02f8a4d
Commit
d02f8a4d
authored
Jun 13, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 150882 - SQL error when sorting by bugs.votes with explicit direction
r=gerv x2
parent
901cdb79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
buglist.cgi
buglist.cgi
+3
-4
No files found.
buglist.cgi
View file @
d02f8a4d
...
...
@@ -1357,10 +1357,9 @@ if ($order) {
$query
=~
s/\sWHERE\s/ LEFT JOIN milestones ms_order ON ms_order.value = bugs.target_milestone AND ms_order.product = bugs.product WHERE /
;
}
# If we are sorting by votes, sort in descending order.
if
(
$db_order
=~
/bugs.votes\s*(asc|desc){0}/i
)
{
$db_order
=~
s/bugs.votes/bugs.votes desc/i
;
}
# If we are sorting by votes, sort in descending order if no explicit
# sort order was given
$db_order
=~
s/bugs.votes\s*(,|$)/bugs.votes desc$1/i
;
$query
.=
" ORDER BY $db_order "
;
}
...
...
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