Pager not keeping accurate records on filter

162Unlimited - October 21, 2008 - 20:08
Project:Content Management Filter
Version:5.x-1.0
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:duplicate
Description

After filtering my results, the pager continues to display hundreds of pages of results when there are actually much less. Clicking the link to go to the last page of results returns the message "Filter returned no results."

It appears that the pages build its list of pages from the original, unfiltered results and does not update after a filter is enacted.

Overall, a great module. Keep up the good work. Thanks.

#1

Nuno Veloso - October 22, 2008 - 09:20
Priority:normal» minor

162Unlimited, I noticed this (minor) bug since the beginning but I have to understand what is going on with the pagers because the code respects the API. More, I have other modules that use pager_query() and theme_pager() functions and there are no issues like that.

Has anyone seen this kind of error before?

The pager_query() code stands in cmf.module file and the theme_pager() code stands in [node|comment|both].inc files.

Thank you.

#2

midkemia - November 8, 2008 - 22:44

Not seen it before but I get the same issue. when filtering by one user it gives pager 1-9 next last but there is only 1 page

If i filter by 'user list' - 'A' , who has created a few pages I get

Pager 1-9 next last - but there is only 1 page

If i filter by 'user list' - 'B' , ( myself - main admin) created 7000+ pages I get

no pager and just 1 page

Thinking that the problem may be caused by the general setting of 50, I changed the setting to 50000 - kills the module

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4359470 bytes) in /sites/all/modules/cmf/node.inc on line 160

from logs

Invalid argument supplied for foreach() in /includes/form.inc on line 905.

Disabling and re-enabling module does not fix

#3

DanielTheViking - December 27, 2008 - 12:56

I am also seeing this issue.

Is there a difference in how this module handles this pager compared to the one that ships with Drupal core?

 
 

Drupal is a registered trademark of Dries Buytaert.