From fc9a794ad7e35a1fb8bbc8a30f17421b679c891b Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 29 Sep 2016 01:59:33 +1000 Subject: [PATCH] Make name required in the product api --- api/v3/Product.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/Product.php b/api/v3/Product.php index 1e784b7c41..d552caca60 100644 --- a/api/v3/Product.php +++ b/api/v3/Product.php @@ -56,6 +56,7 @@ function civicrm_api3_product_create($params) { */ function _civicrm_api3_product_create_spec(&$params) { $params['is_active']['api.default'] = 1; + $params['name']['api.required'] = 1; } /** -- 2.25.1