static function create($params) {
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, 'UFMatch', CRM_Utils_Array::value('id', $params), $params);
+ if(empty($params['domain_id'])) {
+ $params['domain_id'] = CRM_Core_Config::domainID();
+ }
$dao = new CRM_Core_DAO_UFMatch();
$dao->copyValues($params);
$dao->save();
$params['contact_id']['api.required'] = 1;
$params['uf_id']['api.required'] = 1;
$params['uf_name']['api.required'] = 1;
- // note that this should perhaps not be required but need a wrapper level approach
- // prefera
- $params['domain_id']['api.required'] = 1;
}
/**