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';
}
/**
$params['contact_id']['title'] = 'Case Client';
$params['contact_id']['api.required'] = 1;
$params['status_id']['api.default'] = 1;
+ $params['creator_id']['api.default'] = 'user_contact_id';
+ $params['creator_id']['type'] = CRM_Utils_Type::T_INT;
+ $params['start_date']['api.default'] = 'now';
$params['medium_id'] = array(
'name' => 'medium_id',
'title' => 'Activity Medium',
*/
function civicrm_api3_case_get($params) {
$options = _civicrm_api3_get_options_from_params($params);
-
//search by client
if (!empty($params['contact_id'])) {
$ids = array();