View Issues - Sorting by Column Not Working with MySQL4.1.21

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
guestusr
Posts: 3
Joined: 17 Aug 2006, 10:58

View Issues - Sorting by Column Not Working with MySQL4.1.21

Post by guestusr »

Hello

We've been using Mantis 1.0.0 RC2 for almost 1 year now. Today we noticed that the column sorting in the "View Issues" page is not working i.e. the items are ALWAYS sorted by ID, no matter what filter I use (the default was "Last Updated").

This is making the application very hard to use as the most recent issues are always displayed at the end.

We updated to v1.0.5 but still the same problem is there, for all pages.

Version details:
Apache version 1.3.36 (Unix)
PHP version 4.4.2
MySQL version 4.1.21-standard

Can you please help ? We don't know how to get forward with this...


Thank you very much

Cosmin
Last edited by guestusr on 17 Aug 2006, 13:49, edited 1 time in total.
shark
Posts: 43
Joined: 12 Jul 2005, 22:23

Post by shark »

guestusr
Posts: 3
Joined: 17 Aug 2006, 10:58

Post by guestusr »

Yes - it's exactly our issue.

Sorry for not finding this in the bugs section.

Should we do what is written there i.e. deleting DISTINCT ?

Thanks again
shark
Posts: 43
Joined: 12 Jul 2005, 22:23

Post by shark »

I have no idea.

Removing that word from the query is not going to harm anything in the database, so maybe you could give it a try and post your results in the bug notes?
guestusr
Posts: 3
Joined: 17 Aug 2006, 10:58

Post by guestusr »

Done that. After removing "DISTICT" from line 856 of filter_api.php the sorting works ok. Thanks again.
jganders
Posts: 1
Joined: 20 Apr 2007, 18:53

Post by jganders »

guestusr wrote:Done that. After removing "DISTICT" from line 856 of filter_api.php the sorting works ok. Thanks again.
I just downloaded and installed the latest Mantis, I entered 48 bugs.
And this problem is STILL there! I took out the DISTINCT as specified and, sure enuf, the sorting now worx.

Mantis developers, please apply this fix.
(when you have time of course!)
Thanx!
Jim
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

This is a MySQL problem, removing the DISTINCT causes issues to be displayed more than once in other scenarios. I think the My View page is one of such scenarios. You will need to upgrade to an update to date version of apply the MySQL patch. Hosting companies should take care of this for you if you raise it.
Migrate your MantisBT to the MantisHub Cloud
Post Reply