compucorp / uk.co.compucorp.membershipextras

Membership Extras for CiviCRM
Other
5 stars 8 forks source link

COMPCRM-58: Return specific field from Membership API #438

Closed olayiwola-compucorp closed 2 years ago

olayiwola-compucorp commented 2 years ago

Overview

In this PR we return specific fields from the Membership API.

Before

The modify instalment page is broken, and the user cannot perform any action. base2

After

The modify instalment page displays as expected, and the user can perform the expected actions. base1

Technical Details

Before now when getting related membership of line items, we return every membership field, and these might include attachment fields also, which can break the page. in this PR we limit the returned membership fields to 'start_date', 'end_date', 'id'.

'start_date', 'end_date', 'id' are the membership fields we recognize are required for now.