Page 1 of 1

Filter by category in category list doesn't work

Posted: 23 Mar 2011, 22:51
by der-holgi
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.

Re: Filter by category in category list doesn't work

Posted: 25 Mar 2011, 15:20
by Jan
Hi, which version of Phoca Download you are using?

Re: Filter by category in category list doesn't work

Posted: 01 Apr 2011, 20:54
by der-holgi
I use the latest version 2.0.0 RC2. The problem exists in two different installations with FF4 and IE9.

Re: Filter by category in category list doesn't work

Posted: 08 Apr 2011, 13:38
by Jan
Ok, please let me know where exactly? - in category view or file view in administration?

Re: Filter by category in category list doesn't work

Posted: 19 Apr 2011, 10:38
by loldma
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

Re: Filter by category in category list doesn't work

Posted: 20 Apr 2011, 16:41
by xlerator
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! :idea:

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);
shouldn't it be:

Code: Select all

$allow	= $user->authorise('core.create', 'com_phocadownload.phocadownloadcat.'.$categoryId);

Re: Filter by category in category list doesn't work

Posted: 21 Apr 2011, 22:20
by Jan
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. :idea:

Jan