Defect #29

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

Added by Pavol Murin about 12 years ago. Updated about 12 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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

History

#1 Updated by Jean-Philippe Lang about 12 years ago

Fixed. A regression happened.

#2 Updated by Pavol Murin about 12 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.

#3 Updated by Pavol Murin about 12 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

Also available in: Atom PDF