CRM-13283 - Edit StatusPreference API to accept a string for minimum_report_severity
authorJon goldberg <jon@palantetech.coop>
Mon, 27 Apr 2015 22:58:35 +0000 (16:58 -0600)
committerJon goldberg <jon@palantetech.coop>
Tue, 21 Jul 2015 20:37:37 +0000 (16:37 -0400)
api/v3/StatusPreference.php

index d74c5e7d18d4455395e8ccc5c917201d26962508..00ef934f4c96129fdde30cee7428cbe991da06ff 100644 (file)
@@ -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;
 }