$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
- CRM_Pledge_Page_Tab::setContext();
+ CRM_Pledge_Page_Tab::setContext($this);
if ($this->_action & CRM_Core_Action::UPDATE) {
$this->edit();
// check if we can process credit card registration
$this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
- $this->setContext();
+ self::setContext($this);
if ($this->_action & CRM_Core_Action::VIEW) {
$this->view();
return parent::run();
}
- function setContext() {
- $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'search');
+ function setContext(&$form) {
+ $context = CRM_Utils_Request::retrieve('context', 'String', $form, FALSE, 'search');
- $qfKey = CRM_Utils_Request::retrieve('key', 'String', $this);
+ $qfKey = CRM_Utils_Request::retrieve('key', 'String', $form);
//validate the qfKey
if (!CRM_Utils_Rule::qfKey($qfKey)) {
$qfKey = NULL;
default:
$cid = NULL;
- if ($this->_contactId) {
- $cid = '&cid=' . $this->_contactId;
+ if ($form->_contactId) {
+ $cid = '&cid=' . $form->_contactId;
}
$url = CRM_Utils_System::url('civicrm/pledge/search',
'force=1' . $cid