[#2093] Date search user list broken for multiple pages

13 years 4 months ago #146930 by jhaines
If, through the front-end, I filter a user list using a date field and the returned filtered list requires multiple pages, there's no way to view the second and subsequent pages of results. What happens is clicking the "next" or other page number on the filtered output causes the date filter to be removed.

Note that this problem seems to be specific to date fields. Filters on dropdown lists for example seem to be retained for second and subsequent pages of output.

Am I missing something, or is this a bug?

Post edited by: krileon, at: 2010/11/25 17:07

Please Log in to join the conversation.

13 years 4 months ago #146961 by krileon
Filters should not be removed via paging, they're direct additions to the query so can't be removed. Please enable debug mode and review the queries at the bottom of the page to confirm your filter is being removed. How do you have your filter structured?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 4 months ago #147027 by jhaines
It's not been convenient to take the site offline recently, so I don't have the SQL that you requested. However, I think the answer lies in the address bar of the browser.

My site has 101 users. I ran a user search looking for only those who joined in the past year. The URL was reported as:

http://<mysite>/index.php?option=com_comprofiler&task=usersList&Itemid=3&limitstart=0&search=&listid=2&lastvisitDate__minval=&lastvisitDate__maxval=&lastupdatedate__minval=&lastupdatedate__maxval=&name=&firstname=&lastname=&email=&username=&cb_mobile=&cb_expcomp=&cb_expyears__minval=&cb_expyears__maxval=&cb_exppp=&cb_expinst=&cb_expfaid=&cb_expvhf=&cb_expchild=&cb_expother=&cb_memclass=&cb_memjoined__minval=25%2F11%2F2009&cb_memjoined__maxval=&cb_memsubs__minval=&cb_memsubs__maxval=&cb_memexp__minval=&cb_memexp__maxval=

A list of 56 users split over 2 pages was correctly returned.

I then clicked the next (page) button. The following address was reported by the browser:

http://<mysite>/index.php?option=com_comprofiler&task=usersList&listid=2&Itemid=3&cb_memjoined__minval=2009-11-25&limit=30&limitstart=30

A list of 101 users split over 4 pages was incorrectly returned, ie. the filter was, for practical purposes, removed.

I note however that between the initial filtered search and the "next page", the date representation in the query string changed from

&cb_memjoined__minval=25%2F11%2F2009

to

&cb_memjoined__minval=2009-11-25

When I edited the date format for this parameter in the second case to match the first, I correctly got the second page of the 56 user filtered-list that I expected.

So, it looks like the date parameters are being mangled in the query for second and subsequent pages. Can you shed any light on why this would be happening please?

Post edited by: jhaines, at: 2010/11/25 16:48

Please Log in to join the conversation.

13 years 4 months ago #147031 by krileon
Seams there is a URL encode problem for search results on paging. Please keep in mind you're referring to search criteria and NOT filters. Userlists support filters and is misleading when using the term when meaning search criteria.

I was able to confirm your results and have created a bug ticket for your issue.

#2093


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 4 months ago #147033 by jhaines
Thanks and sorry for the initial confusion.

Julian

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn