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:
b486635
)
CRM-13283 - Edit StatusPreference API to accept a string for minimum_report_severity
author
Jon goldberg
<jon@palantetech.coop>
Mon, 27 Apr 2015 22:58:35 +0000
(16:58 -0600)
committer
Jon goldberg
<jon@palantetech.coop>
Tue, 21 Jul 2015 20:37:37 +0000
(16:37 -0400)
api/v3/StatusPreference.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/StatusPreference.php
b/api/v3/StatusPreference.php
index d74c5e7d18d4455395e8ccc5c917201d26962508..00ef934f4c96129fdde30cee7428cbe991da06ff 100644
(file)
--- a/
api/v3/StatusPreference.php
+++ b/
api/v3/StatusPreference.php
@@
-74,4
+74,6
@@
function civicrm_api3_status_preference_delete($params) {
*/
function _civicrm_api3_status_preference_create_spec(&$params) {
$params['name']['api.required'] = 1;
+ // Status Preference can be integer OR a string.
+ $params['minimum_report_severity']['type'] = 2;
}