From 15a25cec32dbd69400833b045953c3642e957d8a Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 21 Sep 2015 19:04:42 +0530 Subject: [PATCH] --CRM-17240, made financial type mandatory on create of price field value through api --- api/v3/PriceFieldValue.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/PriceFieldValue.php b/api/v3/PriceFieldValue.php index 3cf393dab2..4c9a803f00 100644 --- a/api/v3/PriceFieldValue.php +++ b/api/v3/PriceFieldValue.php @@ -71,6 +71,7 @@ function _civicrm_api3_price_field_value_create_spec(&$params) { $params['label']['api.required'] = TRUE; $params['amount']['api.required'] = TRUE; $params['is_active']['api.default'] = TRUE; + $params['financial_type_id']['api.default'] = TRUE; } /** -- 2.25.1