Not showing all the membership types in the dropdown

Created on 29 September 2022, over 1 year ago
Updated 23 August 2023, 10 months ago

Problem/Motivation

When you have many membership types not all are showing in the dropdown.

Steps to reproduce

Create a bunch of membership types and only the first 20 or so show up.

Proposed resolution

in /scr/CivicrmMemberRoles.php On line 125:

$this->civicrm->initialize();
    $result = civicrm_api3('MembershipType', 'get');
    if (empty($result['values'])) {
      return $types;
    }

Change to:

$this->civicrm->initialize();
    $result = civicrm_api3('MembershipType', 'get', [
        'options' => ['limit' => 0, 'sort' => "name"]
    ]);
    if (empty($result['values'])) {
      return $types;
    }

Remaining tasks

Create a patch

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇨🇦Canada AvO WebWorks Ottawa, Ontario, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024