Merge pull request #16258 from samuelsov/i18ncountriesorder
[civicrm-core.git] / CRM / Event / Form / Task / Result.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 * $Id$
17 *
18 */
19
20 /**
21 * Used for displaying results
22 *
23 *
24 */
25 class CRM_Event_Form_Task_Result extends CRM_Event_Form_Task {
26
27 /**
28 * Build all the data structures needed to build the form.
29 *
30 * @return void
31 */
32 public function preProcess() {
33 $session = CRM_Core_Session::singleton();
34
35 //this is done to unset searchRows variable assign during AddToHousehold and AddToOrganization
36 $this->set('searchRows', '');
37
38 $ssID = $this->get('ssID');
39
40 $path = 'force=1';
41 if (isset($ssID)) {
42 $path .= "&reset=1&ssID={$ssID}";
43 }
44 $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);
45 if (CRM_Utils_Rule::qfKey($qfKey)) {
46 $path .= "&qfKey=$qfKey";
47 }
48
49 $url = CRM_Utils_System::url('civicrm/event/search', $path);
50 $session->replaceUserContext($url);
51 CRM_Utils_System::redirect($url);
52 }
53
54 }