Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | ||
18 | /** | |
19 | * Used for displaying results | |
20 | * | |
21 | * | |
22 | */ | |
23 | class CRM_Event_Form_Task_Result extends CRM_Event_Form_Task { | |
24 | ||
25 | /** | |
66f9e52b | 26 | * Build all the data structures needed to build the form. |
6a488035 TO |
27 | * |
28 | * @return void | |
6a488035 | 29 | */ |
00be9182 | 30 | public function preProcess() { |
6a488035 TO |
31 | $session = CRM_Core_Session::singleton(); |
32 | ||
33 | //this is done to unset searchRows variable assign during AddToHousehold and AddToOrganization | |
34 | $this->set('searchRows', ''); | |
35 | ||
36 | $ssID = $this->get('ssID'); | |
37 | ||
38 | $path = 'force=1'; | |
39 | if (isset($ssID)) { | |
40 | $path .= "&reset=1&ssID={$ssID}"; | |
41 | } | |
42 | $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this); | |
43 | if (CRM_Utils_Rule::qfKey($qfKey)) { | |
44 | $path .= "&qfKey=$qfKey"; | |
45 | } | |
46 | ||
47 | $url = CRM_Utils_System::url('civicrm/event/search', $path); | |
48 | $session->replaceUserContext($url); | |
49 | CRM_Utils_System::redirect($url); | |
50 | } | |
96025800 | 51 | |
6a488035 | 52 | } |