Make name required in the product api
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 28 Sep 2016 15:59:33 +0000 (01:59 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 28 Sep 2016 15:59:33 +0000 (01:59 +1000)
api/v3/Product.php

index 1e784b7c41b61211ddb05bc942da97c8097da2ed..d552caca604f1d90cc5dca88240cda25e815f0d7 100644 (file)
@@ -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;
 }
 
 /**