$this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent('participant', $this->_contactId);
// Refresh other tabs with related data
$this->ajaxResponse['updateTabs'] = array(
- '#tab_contribute' => CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId),
'#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId),
);
+ if (CRM_Core_Permission::access('CiviContribute')) {
+ $this->ajaxResponse['updateTabs']['#tab_contribute'] = CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId);
+ }
}
}
// check logged in url permission
CRM_Contact_Page_View::checkUserPermission($this);
-
- // set page title
- CRM_Contact_Page_View::setTitle($this->_contactId);
}
$this->assign('action', $this->_action);
$this->preProcess();
// check if we can process credit card registration
- CRM_Core_Payment::allowBackofficeCreditCard($this);
+ $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
// Only show credit card registration button if user has CiviContribute permission
if (CRM_Core_Permission::access('CiviContribute')) {
'String', $this
);
+ $searchContext = CRM_Utils_Request::retrieve('searchContext', 'String', $this);
+
$qfKey = CRM_Utils_Request::retrieve('key', 'String', $this);
//validate the qfKey
if ($compContext == 'advanced') {
$url = CRM_Utils_System::url('civicrm/contact/search/advanced', $urlParams);
}
+ else if ($searchContext) {
+ $url = CRM_Utils_System::url("civicrm/$searchContext/search", $urlParams);
+ }
else {
$url = CRM_Utils_System::url('civicrm/event/search', $urlParams);
}