Filter by category in category list doesn't work
-
der-holgi
- Phoca Newbie

- Posts: 6
- Joined: 09 Mar 2011, 11:59
Filter by category in category list doesn't work
If I select a category to filter by in the category list, the selection always jumps back to "- Select Category -" and doesn't apply the filter.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Filter by category in category list doesn't work
Hi, which version of Phoca Download you are using?
If you find Phoca extensions useful, please support the project
-
der-holgi
- Phoca Newbie

- Posts: 6
- Joined: 09 Mar 2011, 11:59
Re: Filter by category in category list doesn't work
I use the latest version 2.0.0 RC2. The problem exists in two different installations with FF4 and IE9.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Filter by category in category list doesn't work
Ok, please let me know where exactly? - in category view or file view in administration?
If you find Phoca extensions useful, please support the project
-
loldma
- Phoca Newbie

- Posts: 1
- Joined: 19 Apr 2011, 10:28
Re: Filter by category in category list doesn't work
This is in category view. Also filter/search doesn't working for me, i have something like Products / LifeInsurances / Union lifeinsurances, and i can't search for Union. Also Ordering by Id is orders it within the subcategory, not globally. We have 180+ categories (migrated from joomla 1.5->1.6, docman->phocadownload).
Thanks,
Mark
Thanks,
Mark
-
xlerator
- Phoca Newbie

- Posts: 2
- Joined: 20 Apr 2011, 16:13
Re: Filter by category in category list doesn't work
I have the same issue, category filter is not working.
I've realized that you are using "filter_parent_id" instead of "filter_category_id" in your code. The filter input field name is "filter_category_id".
I've fixed that, but that doesn't seem to solve the problem. The filter selection seems to work but there will be displayed no results (no rows in the result table). But when I do a var_dump to the $items array in getItems() function, the correct results are shown. I've also checked the SQL query which seems also correct and shows the expected results. So the correct data is there, but Joomla doesn't seem to display them.
Any ideas? Help would be appreciated!
edit:
also what i noticed:
in "\administrator\components\com_phocadownload\controllers\phocadownloadcat.php"
theres are two line called
shouldn't it be:
I've realized that you are using "filter_parent_id" instead of "filter_category_id" in your code. The filter input field name is "filter_category_id".
I've fixed that, but that doesn't seem to solve the problem. The filter selection seems to work but there will be displayed no results (no rows in the result table). But when I do a var_dump to the $items array in getItems() function, the correct results are shown. I've also checked the SQL query which seems also correct and shows the expected results. So the correct data is there, but Joomla doesn't seem to display them.
Any ideas? Help would be appreciated!
edit:
also what i noticed:
in "\administrator\components\com_phocadownload\controllers\phocadownloadcat.php"
theres are two line called
Code: Select all
$allow = $user->authorise('core.create', 'com_phocadownload.phocadownloacat.'.$categoryId);Code: Select all
$allow = $user->authorise('core.create', 'com_phocadownload.phocadownloadcat.'.$categoryId);- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Filter by category in category list doesn't work
Hmmm, I will take a look at it for the next version.
Anyway this seems to be a bug but now bug that this does not work but bug with displaying the select box, there should not be such select box in category view, this should be only displayed in file view.
Jan
Anyway this seems to be a bug but now bug that this does not work but bug with displaying the select box, there should not be such select box in category view, this should be only displayed in file view.
Jan
If you find Phoca extensions useful, please support the project