X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FDeprecatedUtils.php;h=00afe4332eb26b1734ec8ab6ba27b2f9ba78b884;hb=6a2edddd7a7c0a6ff755bc7eb4261afac35d5699;hp=34847cc9e218e0656717dbf4af70bffc8dc1de23;hpb=518669f7fc6076a1246f3628f243097338d73876;p=civicrm-core.git diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index 34847cc9e2..00afe4332e 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -242,16 +242,16 @@ function _civicrm_api3_deprecated_formatted_param($params, &$values, $create = F break; case 'payment_instrument': - require_once 'CRM/Core/OptionGroup.php'; - $values['payment_instrument_id'] = CRM_Core_OptionGroup::getValue('payment_instrument', $value); + require_once 'CRM/Core/PseudoConstant.php'; + $values['payment_instrument_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'payment_instrument_id', $value); if (empty($values['payment_instrument_id'])) { return civicrm_api3_create_error("Payment Instrument is not valid: $value"); } break; case 'contribution_status_id': - require_once 'CRM/Core/OptionGroup.php'; - if (!$values['contribution_status_id'] = CRM_Core_OptionGroup::getValue('contribution_status', $value)) { + require_once 'CRM/Core/PseudoConstant.php'; + if (!$values['contribution_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', $value)) { return civicrm_api3_create_error("Contribution Status is not valid: $value"); } break; @@ -863,7 +863,6 @@ function _civicrm_api3_deprecated_add_formatted_param(&$values, &$params) { $htmlType = CRM_Utils_Array::value('html_type', $customFields[$customFieldID]); switch ($htmlType) { case 'CheckBox': - case 'AdvMulti-Select': case 'Multi-Select': if ($val) { $mulValues = explode(',', $val);