Skip to content

Commit

Permalink
Add default domain to membershiptype API
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Aug 23, 2019
1 parent ac179e8 commit 5d449aa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/v3/MembershipType.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ function civicrm_api3_membership_type_get($params) {
return $results;
}

/**
* Adjust Metadata for Get action.
*
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
* Array of parameters determined by getfields.
*/
function _civicrm_api3_membership_type_get_spec(&$params) {
$params['domain_id']['api.default'] = CRM_Core_Config::domainID();
}

/**
* Adjust input for getlist action.
*
Expand Down

0 comments on commit 5d449aa

Please sign in to comment.