From fd2f43f7522897aaffbe260731a986567077caaf Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 15 May 2013 19:09:44 -0700 Subject: [PATCH] CRM-12470. Typo fixes in status messages ---------------------------------------- * CRM-12470: Creating new financial type without AR account leads to unbalanced transactions http://issues.civicrm.org/jira/browse/CRM-12470 --- CRM/Admin/Page/AJAX.php | 2 +- CRM/Financial/Form/FinancialAccount.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Admin/Page/AJAX.php b/CRM/Admin/Page/AJAX.php index 89e1f59ca8..667a942d66 100644 --- a/CRM/Admin/Page/AJAX.php +++ b/CRM/Admin/Page/AJAX.php @@ -135,7 +135,7 @@ class CRM_Admin_Page_AJAX { case 'CRM_Financial_BAO_FinancialAccount': if (!CRM_Financial_BAO_FinancialAccount::getARAccounts($recordID)) { $show = 'noButton'; - $status = ts('The selected financial account cannot be disabled because least one Accounts Receivable type account is required (to ensure that accounting transactions are in balance).'); + $status = ts('The selected financial account cannot be disabled because at least one Accounts Receivable type account is required (to ensure that accounting transactions are in balance).'); } else { $status = ts('Are you sure you want to disable this financial account?'); diff --git a/CRM/Financial/Form/FinancialAccount.php b/CRM/Financial/Form/FinancialAccount.php index 2ed81fe9fc..1279e7340b 100644 --- a/CRM/Financial/Form/FinancialAccount.php +++ b/CRM/Financial/Form/FinancialAccount.php @@ -68,7 +68,7 @@ class CRM_Financial_Form_FinancialAccount extends CRM_Contribute_Form { && !CRM_Financial_BAO_FinancialAccount::getARAccounts($this->_id, array_search('Asset', $financialAccountType))) { $this->_isARFlag = TRUE; if ($this->_action & CRM_Core_Action::DELETE) { - CRM_Core_Session::setStatus(ts("The selected financial account cannot be deleted because least one Accounts Receivable type account is required (to ensure that accounting transactions are in balance)."), + CRM_Core_Session::setStatus(ts("The selected financial account cannot be deleted because at least one Accounts Receivable type account is required (to ensure that accounting transactions are in balance)."), '', 'error'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/financial/financialAccount', "reset=1&action=browse")); -- 2.25.1