From: Pratik Joshi Date: Wed, 14 Aug 2013 10:34:43 +0000 (+0530) Subject: minor bug fix : when we edit a membership and change its membership type - instead... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bd38fe3fb19b5db2f66cc5f560876bef4aef8c71;p=civicrm-core.git minor bug fix : when we edit a membership and change its membership type - instead of 'change membership type' activity, 'change membership status' activity was getting recorded --- diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 30a1adb520..1972792e08 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -158,7 +158,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership { 'source_contact_id' => $membershipLog['modified_id'], 'target_contact_id' => $membership->contact_id, 'source_record_id' => $membership->id, - 'activity_type_id' => CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Change Membership Status'), + 'activity_type_id' => CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Change Membership Type'), 'status_id' => 2, 'priority_id' => 2, 'activity_date_time' => date('Y-m-d H:i:s'),