Commit ca11b9da authored by Eileen McNaughton's avatar Eileen McNaughton

CRM-14449 case api fix _spec functions

parent 784e85a1
......@@ -135,7 +135,6 @@ function civicrm_api3_case_create($params) {
function _civicrm_api3_case_get_spec(&$params) {
$params['contact_id']['api.aliases'] = array('client_id');
$params['contact_id']['title'] = 'Case Client';
$params['creator_id']['api.default'] = 'user_contact_id';
}
/**
......@@ -148,6 +147,8 @@ function _civicrm_api3_case_create_spec(&$params) {
$params['contact_id']['title'] = 'Case Client';
$params['contact_id']['api.required'] = 1;
$params['status_id']['api.default'] = 1;
$params['created_id']['api.default'] = 'user_contact_id';
$params['start_date']['api.default'] = 'now';
$params['medium_id'] = array(
'name' => 'medium_id',
'title' => 'Activity Medium',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment