Project

General

Profile

Actions

Defect #29

closed

sort field is lost, when displaying next part of issues list

Added by Pavol Murin over 17 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello Jean-Philippe,
I think I found a bug when displaying issues. To see it, you must have more than one page of issues.

1. change sorting, e.g. click on "Sort by #" 
2. go to the next page (click on "next" on the bottom of the list)
3. -> BUG  -> I would expect the list to keep the ordering, however the ordering chagnes. So it is not possible
to navigate through an ordered issues list.

If you have troubles replicating the bug, let me know.

Bye, Pavol

Actions #1

Updated by Pavol Murin over 17 years ago

I found the problem - it is within the sort_helper. It is
necessary to update to the latest version (it works with
this one: http://www.methods.co.nz/misc/sort_helper.rb ).

It is then necessary to change the calls to "sort_init
"#{Issue.table_name}, "desc" to
"sort_init
#{Issue.table_name}, {:default_order => 'desc'}"
because
there is a change in sort_init parameters.

Bye, Pavol

Actions #2

Updated by Pavol Murin over 17 years ago

I'm sorry - I was wrong. I don't know what is causing it.
Unfortunately, my fix doesn't work - it still doesn't sort.

Actions #3

Updated by Jean-Philippe Lang over 17 years ago

Fixed. A regression happened.

Actions

Also available in: Atom PDF