Skip to content

Commit

Permalink
Merge pull request #13771 from mattwire/typo
Browse files Browse the repository at this point in the history
Fix typo in comments
  • Loading branch information
eileenmcnaughton authored Mar 6, 2019
2 parents 80c6f13 + 49bade8 commit 679fbb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/BAO/OptionValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 679fbb7

Please sign in to comment.