Skip to content

Commit

Permalink
Test whether the activity change is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Nov 23, 2020
1 parent a7077eb commit 9fbc0df
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -2342,20 +2342,6 @@ public static function transitionComponents($params) {
}
}

// track membership status change if any
if (!empty($oldStatus) && $membership->status_id != $oldStatus) {
$allStatus = CRM_Member_BAO_Membership::buildOptions('status_id', 'get');
CRM_Activity_BAO_Activity::addActivity($membership,
'Change Membership Status',
NULL,
[
'subject' => "Status changed from {$allStatus[$oldStatus]} to {$allStatus[$membership->status_id]}",
'source_contact_id' => $membershipLog['modified_id'],
'priority_id' => 'Normal',
]
);
}

CRM_Utils_Hook::post('edit', 'Membership', $membership->id, $membership);
}
}
Expand Down

0 comments on commit 9fbc0df

Please sign in to comment.