}
if ($this->_ssID && empty($_POST)) {
- $specialFields = array('contact_type', 'group', 'contact_tags');
+ $specialFields = array('contact_type', 'group', 'contact_tags', 'member_membership_type_id', 'member_status_id');
foreach ($defaults as $element => $value) {
if (!empty($value) && is_array($value)) {
if (in_array($element, $specialFields)) {
+ $element = str_replace('member_membership_type_id', 'membership_type_id', $element);
+ $element = str_replace('member_status_id', 'membership_status_id', $element);
$defaults[$element] = array_keys($value);
}
// As per the OK (Operator as Key) value format, value array may contain key
case 'member_status_id':
case 'member_membership_type_id':
if (is_array($value)) {
- $value = array('IN' => array_keys($value));
+ $op = 'IN';
+ $value = array_keys($value);
}
case 'membership_status':
case 'membership_status_id':