Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5165

Inconsistent count shown when search restricted by alphabetical pager

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.9, 3.0
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      None

      Description

      Sorry to report this just after 3.0 release, just had it reported by a client.

      Replicated on drupal.demo.civicrm.org, 3.0 r23950:

      (1) Find Contacts: Contact Type - 'Organization'

      • 18 results.
        (2) Click 'C' on alphabetical pager
      • 4 results.
        (3) Select records: All 4 records, Add Contacts to Group
      • "Add Contacts to a Group" page shows "Number of selected contacts: 18". And if you go ahead, all 18 are added.

      I see from CRM-3951 that the alphabetical pager is not seen as part of the search criteria. However it is presented as such in the search results header: it shows in the qill, e.g. " Contact Type - 'Organization' ...AND... Restricted to Contacts starting with: 'C' " and is reflected in the result count and in "Select records: All X records".

      The client who reported the issue expected just the contacts beginning with her chosen letter to be added to her group. I can see arguments both ways but the current behaviour is clearly inconsistent: in the above example, "Select records: All X records" should select precisely X records - one can argue about whether X should be 4 or 18 here.

      If the decision is that the alpha pager does not constitute part of the search criteria then perhaps "Showing only Contacts starting with: 'C'" would be clearer than "Restricted to Contacts starting with: 'C'".

        Attachments

          Activity

            People

            • Assignee:
              rahulbile Rahul Bile
              Reporter:
              davej Dave Jenkins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: