$this->_task = $values['task'];
- $ids = $form->getSelectedIDs($values);
+ $ids = $this->getSelectedIDs($values);
if (!$ids) {
$qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
$this->_voterIds = $this->_contactIds = $this->_componentIds = $ids;
$this->assign('totalSelectedContacts', count($this->_contactIds));
-
- //set the context for redirection for any task actions
- $session = CRM_Core_Session::singleton();
- $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
- $urlParams = 'force=1';
- if (CRM_Utils_Rule::qfKey($qfKey)) {
- $urlParams .= '&qfKey=' . $qfKey;
- }
- $session->replaceUserContext(CRM_Utils_System::url('civicrm/survey/search', $urlParams));
+ $this->setNextUrl('survey');
}
/**