X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FCase.php;h=afa5f48a92f4a32a07aa98bda47b16d664bc814e;hb=cc7968d8a8cc3b6008257018642334d5424be8d9;hp=a7fe9c4d52cd644c680a09bfa72e543a9ffd1fd8;hpb=b71cb96619f284fb007d4365c33f59f088573d8f;p=civicrm-core.git diff --git a/api/v3/Case.php b/api/v3/Case.php index a7fe9c4d52..afa5f48a92 100644 --- a/api/v3/Case.php +++ b/api/v3/Case.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -37,6 +37,7 @@ * Open a new case, add client and manager roles, and standard timeline. * * @param array $params + * * @code * //REQUIRED: * 'case_type_id' => int OR @@ -134,8 +135,11 @@ function civicrm_api3_case_create($params) { * Parameters determined by getfields. */ function _civicrm_api3_case_get_spec(&$params) { - $params['contact_id']['api.aliases'] = array('client_id'); - $params['contact_id']['title'] = 'Case Client'; + $params['contact_id'] = array( + 'api.aliases' => array('client_id'), + 'title' => 'Case Client', + 'type' => CRM_Utils_Type::T_INT, + ); } /** @@ -145,9 +149,12 @@ function _civicrm_api3_case_get_spec(&$params) { * Array of parameters determined by getfields. */ function _civicrm_api3_case_create_spec(&$params) { - $params['contact_id']['api.aliases'] = array('client_id'); - $params['contact_id']['title'] = 'Case Client'; - $params['contact_id']['api.required'] = 1; + $params['contact_id'] = array( + 'api.aliases' => array('client_id'), + 'title' => 'Case Client', + 'api.required' => 1, + 'type' => CRM_Utils_Type::T_INT, + ); $params['status_id']['api.default'] = 1; $params['status_id']['api.aliases'] = array('case_status'); $params['creator_id']['api.default'] = 'user_contact_id'; @@ -157,6 +164,7 @@ function _civicrm_api3_case_create_spec(&$params) { $params['medium_id'] = array( 'name' => 'medium_id', 'title' => 'Activity Medium', + 'type' => CRM_Utils_Type::T_INT, ); } @@ -366,6 +374,7 @@ function civicrm_api3_case_update($params) { * Delete a specified case. * * @param array $params + * * @code * //REQUIRED: * 'id' => int