Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preliminary tidy up of MembershipType form (towards custom data support) #12123

Merged
merged 1 commit into from
May 14, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 13, 2018

Overview

Code tidy up (toward work to make custom data available on more forms, if enabled via an extension). Note this is a partial reviewers commit of #12118 - there are still some issues I want to work through but this reduces some 'noise' from those issues

Before

no change

After

no change

Technical Details

This is a reviewers commit on the portion of #12118 that I have reviewed & found straightforward. Adding merge-on-pass.

Changes are

  1. using 'null' rather than 'NULL' for api support
  2. renaming a variable for readability
  3. passing $params['id'] rather than the deprecated $ids['membershipType']

Comments

These changes are preliminary to switching to using the api rather than the BAO function, which is necessary to support custom data on entities that are not enabled in core (we are not anticipating new ones would be enabled in core but extensions can now enable custom data on 'almost' any entity by adding a value to the cg_extends option group'

@eileenmcnaughton eileenmcnaughton merged commit e583044 into civicrm:master May 14, 2018
@eileenmcnaughton eileenmcnaughton deleted the membership_type branch May 14, 2018 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants