Problems with Admin Category filter search

Phoca Download - download manager
geoffc
Phoca Member
Phoca Member
Posts: 12
Joined: 03 Sep 2011, 20:34

Problems with Admin Category filter search

Post by geoffc »

Jan,

There is a problem with the filter search on the Category search if you enter some of the text in the sub category name as the search criteria.

The problem is with the ProcessTree code call in the view.html file in the Phocadownloadcats view.

i.e If one has a category set up as follows:

Top Category
Sub category

It is displayed normally as: 'Top Category - Sub Category'

If you then enter a filter search value of 'Sub' it is unable to find any entries.
The reason (I think) is that because the parent category ('Top Category') is not in the result set ($rows) the ProcessTree code doesn't return any rows.

It is possible to cludge it if there is a single record by plugging the 'parent_id' into the third parameter ($id) field but this is not a good solution.

I hope I have explained this clearly enough and that you can understand it.

Regards
Geoff.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with Admin Category filter search

Post by Jan »

Hi, yes this is known issue, because of the tree, it only looks for parent categories :-( (more info in similar posts in this forum)

Jan
If you find Phoca extensions useful, please support the project
Post Reply