Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.1.3
-
Fix Version/s: 3.1.4
-
Component/s: CiviMember
-
Labels:None
Description
Current versions of CiviCRM set Pending membership status to reserved so it can't be edited or deleted. However, some upgraded sites are missing the 'Pending' membership status. We should check for it in the 3.1.4 incremental upgrade, and insert if missing since we throw fatal error if not present.
— original post ----
This is due to line 695-ish in Core_BAO_Membership.php
$pendingStatusId = array_search( 'Pending', CRM_Member_PseudoConstant::membershipStatus( ) );
One option is just to make the membership status pending un-editable through CiviCRM
UPDATE `civicrm_membership_status` SET `is_admin` = '1' WHERE `civicrm_membership_status`.`name` = 'Pending' LIMIT 1;