Merge pull request #11396 from mukeshcompucorp/fix-page-structure
[civicrm-core.git] / api / v3 / Grant.php
index 15fc110b7ddd679e4c5a9d4aa3335e293dd29e8e..60e3797a939f542719b8898e2340eec2f903df60 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -54,7 +54,10 @@ 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.required'] = 1;
+  $params['amount_total']['api.required'] = 1;
   $params['status_id']['api.aliases'] = array('grant_status');
 }