Date fields are empty on memberships created with Order API Pending
Same problem as #2902 (closed).
Example Order.create API Call to reproduce:
{
"contact_id": 202,
"total_amount": 100.00,
"financial_type_id": "Member Dues",
"contribution_status_id": "Pending",
"line_items" : [
{
"params": {
"membership_type_id": "General",
"contact_id": 202,
"status_id": "Pending",
"skipStatusCal":1
},
"line_item": [
{
"entity_table":"civicrm_membership",
"price_field_id":"4",
"price_field_value_id":"7",
"qty":"1",
"unit_price":"100.00",
"line_total":"100.00"
}
]
}
]
}
Result on 5.39 is a pending Contribution and Membership with join_date, start_date, and end_date
Result on 5.40+ is a pending Contribution and Membership with NO join_date, start_date, or end_date
Including 5.43alpha with @eileen's patch for #2902 applied
5.42+ works correctly without skipStatusCal set, however for backwards compatibility it should work with it also.