From 96c00f732fd6c6419c2e5e0a4cbed5c5220487fc Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Mon, 7 Jul 2014 17:08:12 +0530 Subject: [PATCH] CRM-14944 QA fixes ---------------------------------------- * CRM-14944: function should not be called statically - pledge page https://issues.civicrm.org/jira/browse/CRM-14944 --- CRM/Pledge/Page/Tab.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Pledge/Page/Tab.php b/CRM/Pledge/Page/Tab.php index 152e8b7caf..15b9f2f8ff 100644 --- a/CRM/Pledge/Page/Tab.php +++ b/CRM/Pledge/Page/Tab.php @@ -159,7 +159,7 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { return parent::run(); } - function setContext(&$form) { + public static function setContext(&$form) { $context = CRM_Utils_Request::retrieve('context', 'String', $form, FALSE, 'search'); $qfKey = CRM_Utils_Request::retrieve('key', 'String', $form); @@ -189,7 +189,7 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { case 'pledge': $url = CRM_Utils_System::url('civicrm/contact/view', - "reset=1&force=1&cid={$this->_contactId}&selectedChild=pledge" + "reset=1&force=1&cid={$form->_contactId}&selectedChild=pledge" ); break; @@ -199,7 +199,7 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { case 'activity': $url = CRM_Utils_System::url('civicrm/contact/view', - "reset=1&force=1&cid={$this->_contactId}&selectedChild=activity" + "reset=1&force=1&cid={$form->_contactId}&selectedChild=activity" ); break; -- 2.25.1