From: atif-shaikh Date: Mon, 7 Jul 2014 11:38:12 +0000 (+0530) Subject: CRM-14944 QA fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=96c00f732fd6c6419c2e5e0a4cbed5c5220487fc;p=civicrm-core.git CRM-14944 QA fixes ---------------------------------------- * CRM-14944: function should not be called statically - pledge page https://issues.civicrm.org/jira/browse/CRM-14944 --- 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;