CRM-12108 noticed api.contribution_recur.frequency_interval needs to be mandatory
authoreileen <eileen@fuzion.co.nz>
Tue, 30 Jul 2013 01:18:12 +0000 (13:18 +1200)
committereileen <eileen@fuzion.co.nz>
Thu, 1 Aug 2013 19:56:56 +0000 (07:56 +1200)
api/v3/ContributionRecur.php

index 31320424827cf3a1fee464e75d666fe9540cbf6c..e704af4ce6dcd29a0b57ee0833cf52fade5de508 100644 (file)
@@ -57,6 +57,7 @@ function civicrm_api3_contribution_recur_create($params) {
 function _civicrm_api3_contribution_recur_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
   $params['create_date']['api.default'] = 'now';
+  $params['frequency_interval']['api.required'] = 1;
 }
 
 /**