projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
454d4c6
)
Make name required in the product api
author
Seamus Lee
<seamuslee001@gmail.com>
Wed, 28 Sep 2016 15:59:33 +0000
(
01:59
+1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Wed, 28 Sep 2016 15:59:33 +0000
(
01:59
+1000)
api/v3/Product.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Product.php
b/api/v3/Product.php
index 1e784b7c41b61211ddb05bc942da97c8097da2ed..d552caca604f1d90cc5dca88240cda25e815f0d7 100644
(file)
--- 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;
}
/**