----------------------------------------
* CRM-21357: Start date is NULL when membership batch entry is processed
https://issues.civicrm.org/jira/browse/CRM-21357
//get the information on membership type
var membershipTypeId = data.values[0].membership_type_id;
var membershipJoinDate = data.values[0].join_date;
+ var membershipStartDate = data.values[0].start_date;
CRM.api('MembershipType', 'get', {
'sequential': '1',
'id': membershipTypeId
cj('select[id="field_' + blockNo + '_membership_type_0"]').val(memTypeContactId).change();
cj('select[id="field_' + blockNo + '_membership_type_1"]').val(membershipTypeId).change();
cj('#field_' + blockNo + '_' + 'join_date').val(membershipJoinDate).trigger('change');
+ cj('#field_' + blockNo + '_' + 'membership_start_date').val(membershipStartDate).trigger('change');
}
});
}