(substr($name, 0, 12) == 'participant_') ||
(substr($name, 0, 7) == 'pledge_') ||
(substr($name, 0, 5) == 'case_') ||
- (substr($name, 0, 13) == 'contribution_' && strpos($name, 'source') === FALSE) ||
+ (substr($name, 0, 13) == 'contribution_' &&
+ (strpos($name, 'source') !== FALSE || strpos($name, 'recur') !== FALSE)) ||
(substr($name, 0, 8) == 'payment_')
) {
continue;
);
$fields = civicrm_api3('Membership', 'getfields', array('action' => 'get'));
_civicrm_api3_validate_fields('Membership', 'get', $params, $fields['values']);
- $this->assertEquals('20101220000000', $params['start_date'], 'in line ' . __LINE__);
+ $this->assertEquals('2010-12-20', $params['start_date']);
+ $this->assertEquals('20101220000000', $params['membership_start_date'], 'in line ' . __LINE__);
$this->assertEquals('', $params['end_date']);
$this->assertEquals('20101220000000', $params['join_date'], 'join_date not set in line ' . __LINE__);
}