Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6
-
Fix Version/s: 4.6.9
-
Component/s: Extension System
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
If you select statuses (New, Current,Expired..) other than the default 'active only' the choices are kept in the database but not displayed. The fix is to add one line to setMembershipStatusDefaults, returning $values['membership']['status_id']['IN'] as shown below:
/**
- Set default for membership status based on presence of 'active_only' param
- @param unknown $defaults
- @param unknown $fieldName
- @param unknown $value
- @param unknown $spec
*/
function setMembershipStatusDefaults(&$defaults, $fieldName, $values, $spec)Unknown macro: { if (!empty($values['membership']['active_only'])) { return ''; } return $values['membership']['status_id']['IN']; }