Subcategory Order is wrong
-
marcus178
- Phoca Member

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Subcategory Order is wrong
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.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Subcategory Order is wrong
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

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Re: Subcategory Order is wrong
I have attached screen shots so that you can see the frontend isn't ordering the same as the admin.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Subcategory Order is wrong
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

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Re: Subcategory Order is wrong
Sorry thought I'd added it already.
-
marcus178
- Phoca Member

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Re: Subcategory Order is wrong
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

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Re: Subcategory Order is wrong
Ok. I found that in models/category.php if you comment out
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.
Code: Select all
' GROUP BY c.id'.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

- Posts: 28
- Joined: 26 Mar 2009, 00:23
Re: Subcategory Order is wrong
This bug still exists in version 2.2.3.
The solution given by Marcus178 is working.
The solution given by Marcus178 is working.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Subcategory Order is wrong
will be commented in next version, Jan
If you find Phoca extensions useful, please support the project