Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 914
    • Issues 914
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #1770

Closed
Open
Opened May 19, 2020 by marcusjwilson@marcusjwilson

Pagination in Smart Group Alphabetic listings

Overview

When creating a Smart Group (in this case, via the Search Builder) and displaying Contacts within the Smart Group, if we choose to view the Contacts by Alphabet letter, and then paginate through that letter (i.e. viewing page 2 of the contacts with surnames starting "H"), then, at the end of the list, the contacts from the start of the "H"s are repeated.

For instance, on page 2 of the "H"s in my smart group, I see that it's displaying "Contact 51 - 67 of 67". But after Contact number 67 it starts to display the "H"s from the start again, in positions 68 to 100 (which shouldn't exist in the view).

Reproduction steps

  1. Create a Smart Group using Search Builder
  2. Navigate to Contacts > Manage Groups. Find the Smart Group and view "Contacts"
  3. Navigate to a letter of the alphabet for Contacts where the number of results returned > 50, and view the last page of listings.

Current behaviour

Smart Groups Contacts filtered by Letter repeating contacts on last page of listings.

Expected behaviour

Smart Groups Contacts filtered by Letter only display each contact once.

Environment information

CiviCRM 5.24.3 WordPress 5.4.1

Comments

I couldn't test this on the demo sites, as there aren't enough contacts in the demo site databases to display > 50 contacts per letter of the alphabet. Can contact data on demo sites be expanded?

Edited May 19, 2020 by marcusjwilson
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1770