X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FFinancial%2FPage%2FFinancialTypeAccount.php;h=caebcf5760c87e83fe15c0dbe9e2fd1bd659dc91;hb=0fccb17f3cf8138fc43aed4b48fd23a38394bbf8;hp=d7f9b29bde6a9f383dc59154164ae8d82a0b1dee;hpb=a946aa64b981cfd2738fa06fa9ce34dd5b76f5f7;p=civicrm-core.git diff --git a/CRM/Financial/Page/FinancialTypeAccount.php b/CRM/Financial/Page/FinancialTypeAccount.php index d7f9b29bde..caebcf5760 100644 --- a/CRM/Financial/Page/FinancialTypeAccount.php +++ b/CRM/Financial/Page/FinancialTypeAccount.php @@ -1,9 +1,9 @@ array( + CRM_Core_Action::UPDATE => array( 'name' => ts('Edit'), 'url' => 'civicrm/admin/financial/financialType/accounts', 'qs' => 'action=update&id=%%id%%&aid=%%aid%%&reset=1', 'title' => ts('Edit Financial Type Account'), ), - CRM_Core_Action::DELETE => array( + CRM_Core_Action::DELETE => array( 'name' => ts('Delete'), 'url' => 'civicrm/admin/financial/financialType/accounts', 'qs' => 'action=delete&id=%%id%%&aid=%%aid%%', @@ -95,7 +95,6 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page { * Finally it calls the parent's run method. * * @return void - * */ public function run() { // get the requested action @@ -119,10 +118,9 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page { } /** - * Browse all Financial Type Account data + * Browse all Financial Type Account data. * * @return void - * @static */ public function browse() { // get all Financial Type Account data sorted by weight @@ -134,7 +132,7 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page { if ($this->_aid) { $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' ")); $this->_title = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', $this->_aid, 'name'); - CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Assigned Financial Accounts')); + CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Assigned Financial Accounts')); $financialAccountType = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialAccount', 'financial_account_type_id'); $accountRelationship = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_EntityFinancialAccount', 'account_relationship'); $dao->copyValues($params); @@ -219,4 +217,5 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page { $controller->process(); $controller->run(); } + }