CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • pagination does not work properly for custom searches
Pages: [1]

Author Topic: pagination does not work properly for custom searches  (Read 1333 times)

tmcnulty1982

  • Guest
pagination does not work properly for custom searches
November 14, 2008, 07:59:01 am
I just upgraded to CiviCRM 2.1 and I'm thrilled to see the new support for custom searches in the interface.  However when I did a search through the "Include / Exclude Contacts in a Group / Tag" custom search, it shows all the contacts on one page instead of breaking them up into pages.  The navigation is there to go to different pages, but each page contains the same huge list of results.  This obviously puts quite a strain on the browser when the search returns 1000s and 1000s of records.

I tried one of the other custom searches (Basic Search) and it had the same problem.  Is this a bug?  If I look at the members of a Smart Group directly via Manage Groups they are paginated properly.  I'm using CiviCRM 2.1.1 with PHP 5.2.0-8+etch13 and MySQL 5.0.32-7etch8.

Thanks
Tobias

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: pagination does not work properly for custom searches
November 14, 2008, 09:49:13 am

The custom search code needs to "respect" the parameters sent to it via the interface. if it does so, pagination is enabled by default.

there were bugs in both the basic search and the group search that did not use the parameters and hence pagination did not work for those two searches. I've fixed it in 2.1 for these two files. Should be part of 2.1.2. alternatively you can get these updated files from svn directly

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tmcnulty1982

  • Guest
Re: pagination does not work properly for custom searches
November 14, 2008, 11:27:07 am
I downloaded http://svn.civicrm.org/civicrm/trunk/CRM/Contact/Form/Search/Custom/Group.php and Basic.php.  Same behavior in both searches.  Is there something else?  I did reset my session/cache etc. per the upgrade instructions but I didn't do anything else or upgrade any other files.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: pagination does not work properly for custom searches
November 14, 2008, 11:44:48 am

You should get the code from the 2.1 branch: http://svn.civicrm.org/civicrm/branches/v2.1/CRM/Contact/Form/Search/Custom/Group.php rather than trunk

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tmcnulty1982

  • Guest
Re: pagination does not work properly for custom searches
November 14, 2008, 12:00:38 pm
works great thanks!

toby

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • pagination does not work properly for custom searches

This forum was archived on 2017-11-26.