From 23f0202eafa3ba44ee982b9e67524890f1bb9746 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Fri, 4 Sep 2015 10:48:32 +1200 Subject: [PATCH] CRM-17152 fix non-static method called statically --- CRM/Financial/Form/BatchTransaction.php | 4 +++- CRM/Financial/Page/AJAX.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Financial/Form/BatchTransaction.php b/CRM/Financial/Form/BatchTransaction.php index 7dc2fe55d2..ddefa2cad3 100644 --- a/CRM/Financial/Form/BatchTransaction.php +++ b/CRM/Financial/Form/BatchTransaction.php @@ -176,7 +176,9 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form { } /** - * @return array|null + * Get action links. + * + * @return array */ public function &links() { if (!(self::$_links)) { diff --git a/CRM/Financial/Page/AJAX.php b/CRM/Financial/Page/AJAX.php index 0d9f7bd527..a163251816 100644 --- a/CRM/Financial/Page/AJAX.php +++ b/CRM/Financial/Page/AJAX.php @@ -427,7 +427,8 @@ class CRM_Financial_Page_AJAX { } else { $row[$financialItem->id]['check'] = NULL; - $links = CRM_Financial_Page_BatchTransaction::links(); + $tempBAO = new CRM_Financial_Page_BatchTransaction(); + $links = $tempBAO->links(); unset($links['remove']); $row[$financialItem->id]['action'] = CRM_Core_Action::formLink( $links, -- 2.25.1