From: Seamus Lee Date: Wed, 28 Sep 2016 15:59:33 +0000 (+1000) Subject: Make name required in the product api X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc9a794ad7e35a1fb8bbc8a30f17421b679c891b;p=civicrm-core.git Make name required in the product api --- 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; } /**