Skip to content

Commit

Permalink
Deprecation - expect test fail - lessee
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Dec 14, 2020
1 parent ce88161 commit be5f567
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Member/BAO/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ public static function create(&$params, $ids = []) {
// Record contribution for this membership and create a MembershipPayment
// @todo deprecate this.
if (!empty($params['contribution_status_id']) && empty($params['relate_contribution_id'])) {
CRM_Core_Error::deprecatedWarning('membership should not be used to create contributions');
$memInfo = array_merge($params, ['membership_id' => $membership->id]);
$params['contribution'] = self::recordMembershipContribution($memInfo);
}
Expand Down

0 comments on commit be5f567

Please sign in to comment.