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
7008297c
Commit
7008297c
authored
Jul 23, 2004
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 252329: Returning to buglist after an empty fulltext search causes code error
r=kiko, a=justdave ----------------------------------------------------------------------
parent
e1b2dccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
buglist.cgi
buglist.cgi
+11
-3
No files found.
buglist.cgi
View file @
7008297c
...
...
@@ -591,9 +591,17 @@ my @selectnames = map($columns->{$_}->{'name'}, @selectcolumns);
################################################################################
# Add to the query some instructions for sorting the bug list.
if
(
$cgi
->
cookie
(
'LASTORDER'
)
&&
(
!
$order
||
$order
=~
/^reuse/i
))
{
$order
=
$cgi
->
cookie
(
'LASTORDER'
);
$order_from_cookie
=
1
;
# First check if we'll want to reuse the last sorting order; that happens if
# the order is not defined or its value is "reuse last sort"
if
(
!
$order
||
$order
=~
/^reuse/i
)
{
if
(
$cgi
->
cookie
(
'LASTORDER'
))
{
$order
=
$cgi
->
cookie
(
'LASTORDER'
);
$order_from_cookie
=
1
;
}
else
{
$order
=
''
;
# Remove possible "reuse" identifier as unnecessary
}
}
my
$db_order
=
""
;
# Modified version of $order for use with SQL query
...
...
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