Bug #23630 Fix is in Upcoming Release

member_group not rendering within exp:member:custom_profile_data

Version: 4.3.1 Reporter: xynergy_inc

Trying to use:

{exp:member:custom_profile_data member_id="{segment_3}”} 3 {/exp:member:custom_profile_data}

But throws PHP Notice and doesn’t render. Notice is: Undefined index: group_title ee/EllisLab/Addons/member/mod.member.php, line 2431

  • Thanks for the report. We’ve got a fix in for the next release and a temporary patch in the solution tag.

    Robin Sowell
    18th June, 2018 at 2:11pm

You must be signed in to comment on a bug report.

  • In system/ee/EllisLab/Addons/member/mod.member.php around line 2220:

    $member = ee('Model')
          ->get('Member', $member_id)
          ->first();
    change to
         $member = ee('Model')
          ->get('Member', $member_id)
          ->with('MemberGroup')
          ->first();

    And line 2229

    $results = $member->getValues();
    change to
         $results = $member->getValues() + array('group_title' => $member->MemberGroup->group_title);

ExpressionEngine News

#eecms, #events, #releases