fix api price field value - default to is_active
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:57:30 +0000 (08:57 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:57:30 +0000 (08:57 +1200)
api/v3/PriceFieldValue.php

index 97f389608f955a304334a78b41bb6e039578ce58..541d65b9a140d603c5bb0923fb66ab3d1eefa481 100644 (file)
@@ -69,6 +69,8 @@ function civicrm_api3_price_field_value_create($params) {
 function _civicrm_api3_price_field_value_create_spec(&$params) {
   $params['price_field_id']['api.required'] = TRUE;
   $params['label']['api.required'] = TRUE;
+  $params['amount']['api.required'] = TRUE;
+  $params['is_active']['api.default'] = TRUE;
 }
 
 /**