Subcategory Order is wrong

Phoca Gallery - image gallery extension
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Subcategory Order is wrong

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory Order is wrong

Post by Jan »

Hi, I have tested it now and got it ordered by ordering ???
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory Order is wrong

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory Order is wrong

Post by Jan »

Ok this is the backend? Do you have some fronted to compare it?
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory Order is wrong

Post by marcus178 »

Sorry thought I'd added it already.
Picture 3.jpg
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory Order is wrong

Post 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.
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory Order is wrong

Post 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.
bole
Phoca Member
Phoca Member
Posts: 28
Joined: 26 Mar 2009, 00:23

Re: Subcategory Order is wrong

Post by bole »

This bug still exists in version 2.2.3.

The solution given by Marcus178 is working.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory Order is wrong

Post by Jan »

will be commented in next version, Jan
If you find Phoca extensions useful, please support the project
Post Reply