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:
694d926
)
fix api price field value - default to is_active
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:57:30 +0000
(08:57 +1200)
committer
Eileen McNaughton
<eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:57:30 +0000
(08:57 +1200)
api/v3/PriceFieldValue.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/PriceFieldValue.php
b/api/v3/PriceFieldValue.php
index 97f389608f955a304334a78b41bb6e039578ce58..541d65b9a140d603c5bb0923fb66ab3d1eefa481 100644
(file)
--- a/
api/v3/PriceFieldValue.php
+++ b/
api/v3/PriceFieldValue.php
@@
-69,6
+69,8
@@
function civicrm_api3_price_field_value_create($params) {
function _civicrm_api3_price_field_value_create_spec(&$params) {
$params['price_field_id']['api.required'] = TRUE;
$params['label']['api.required'] = TRUE;
+ $params['amount']['api.required'] = TRUE;
+ $params['is_active']['api.default'] = TRUE;
}
/**