X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FOptionValue.php;h=a47e8ebed57169c989284a1e09473aee5db73acf;hb=00cb6250d344a4de5ecd69c2253785a0767c4b38;hp=0a7130b820ceb13d3533dd7b8368a503f987e94c;hpb=bf392b2f69ca864414f7a610c5010c73a25babb7;p=civicrm-core.git diff --git a/api/v3/OptionValue.php b/api/v3/OptionValue.php index 0a7130b820..a47e8ebed5 100644 --- a/api/v3/OptionValue.php +++ b/api/v3/OptionValue.php @@ -1,16 +1,44 @@ 3, 'id' => $params['id'], 'return' => 'option_group_id')); if (CRM_Core_BAO_OptionValue::del((int) $params['id'])) { civicrm_api('option_value', 'getfields', array('version' => 3, 'cache_clear' => 1, 'option_group_id' => $optionGroupID)); return civicrm_api3_create_success(); } - else{ + else { civicrm_api3_create_error('Could not delete OptionValue ' . $params['id']); } }