Skip to content

Commit

Permalink
--CRM-16189, updated function name
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak authored and Edzelopez committed Jul 6, 2016
1 parent d711e07 commit 15aac0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static function add(&$params, $ids = array()) {
}

// CRM-16189
$error = CRM_Financial_BAO_FinancialAccount::checkForValidFinancialType($params, $contributionID);
$error = CRM_Financial_BAO_FinancialAccount::checkFinancialTypeHasDeferred($params, $contributionID);
if ($error) {
throw new CRM_Core_Exception($error);
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ public static function formRule($fields, $files, $self) {
$errors['revenue_recognition_date'] = ts('Month and Year are required field for Revenue Recognition.');
}
// CRM-16189
$errorMessage = CRM_Financial_BAO_FinancialAccount::checkForValidFinancialType($fields, $self->_id, $self);
$errorMessage = CRM_Financial_BAO_FinancialAccount::checkFinancialTypeHasDeferred($fields, $self->_id, $self);
if ($errorMessage) {
$errors['financial_type_id'] = ' ';
$errors['_qf_default'] = $errorMessage;
Expand Down

0 comments on commit 15aac0f

Please sign in to comment.