Merge pull request #9789 from fliespl/patch-2
[civicrm-core.git] / api / v3 / Product.php
index 1e784b7c41b61211ddb05bc942da97c8097da2ed..e862b28449a2892b54b156863869ee7195c2d8a3 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -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;
 }
 
 /**