contact_id should be marked as required on grant api
authorMichael McAndrew <michaelmcandrew@thirdsectordesign.org>
Tue, 18 Oct 2016 13:50:51 +0000 (14:50 +0100)
committerMichael McAndrew <michaelmcandrew@thirdsectordesign.org>
Tue, 18 Oct 2016 13:50:51 +0000 (14:50 +0100)
api/v3/Grant.php

index 15fc110b7ddd679e4c5a9d4aa3335e293dd29e8e..7ad621671e1db519a1460702ac3c368564c497ed 100644 (file)
@@ -54,6 +54,7 @@ function civicrm_api3_grant_create($params) {
  *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_grant_create_spec(&$params) {
+  $params['contact_id']['api.required'] = 1;
   $params['grant_type_id']['api.required'] = 1;
   $params['status_id']['api.aliases'] = array('grant_status');
 }