Page 1 of 1

Subcategory Order is wrong

Posted: 25 Feb 2009, 15:37
by marcus178
I am using 2.2.1 Beta and the subcategories are not in the same order as I have them in the administration. They seem to be ordered by ID instead.

Re: Subcategory Order is wrong

Posted: 27 Feb 2009, 21:26
by Jan
Hi, I have tested it now and got it ordered by ordering ???

Re: Subcategory Order is wrong

Posted: 02 Mar 2009, 14:09
by marcus178
I have attached screen shots so that you can see the frontend isn't ordering the same as the admin.
Picture 2.png

Re: Subcategory Order is wrong

Posted: 02 Mar 2009, 16:33
by Jan
Ok this is the backend? Do you have some fronted to compare it?

Re: Subcategory Order is wrong

Posted: 02 Mar 2009, 17:38
by marcus178
Sorry thought I'd added it already.
Picture 3.jpg

Re: Subcategory Order is wrong

Posted: 03 Mar 2009, 19:15
by marcus178
It's definitely ordering by the id. I just went into the database and changed the id of one of the subcategories and the order changed.

Re: Subcategory Order is wrong

Posted: 03 Mar 2009, 19:27
by marcus178
Ok. I found that in models/category.php if you comment out

Code: Select all

' GROUP BY c.id'.
about line 513

this fixes the problem but I'm not sure if will have any effect on other things but it all seems to be ok.

Re: Subcategory Order is wrong

Posted: 13 Apr 2009, 09:57
by bole
This bug still exists in version 2.2.3.

The solution given by Marcus178 is working.

Re: Subcategory Order is wrong

Posted: 15 Apr 2009, 18:48
by Jan
will be commented in next version, Jan