diff --git a/CRM/Core/BAO/OptionValue.php b/CRM/Core/BAO/OptionValue.php index 5cb6a486bfe1..959b77d5e4d3 100644 --- a/CRM/Core/BAO/OptionValue.php +++ b/CRM/Core/BAO/OptionValue.php @@ -244,13 +244,13 @@ public static function add(&$params, $ids = array()) { $optionValue->save(); CRM_Core_PseudoConstant::flush(); - // Create relationship for payment intrument options + // Create relationship for payment instrument options if (!empty($params['financial_account_id'])) { $optionName = civicrm_api3('OptionGroup', 'getvalue', [ 'return' => 'name', 'id' => $params['option_group_id'], ]); - // Only create relationship for payment intrument options + // Only create relationship for payment instrument options if ($optionName == 'payment_instrument') { $relationTypeId = civicrm_api3('OptionValue', 'getvalue', [ 'return' => 'value',