From: Eileen McNaughton Date: Tue, 3 Jun 2014 20:57:30 +0000 (+1200) Subject: fix api price field value - default to is_active X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa52367c1b2f331a8a077d5fb3cbfd7cf01a0ed2;p=civicrm-core.git fix api price field value - default to is_active --- diff --git a/api/v3/PriceFieldValue.php b/api/v3/PriceFieldValue.php index 97f389608f..541d65b9a1 100644 --- a/api/v3/PriceFieldValue.php +++ b/api/v3/PriceFieldValue.php @@ -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; } /**