From 833a247fe210e5b8f58a2373dcc9967cba77048e Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 5 Dec 2020 15:07:50 +1300 Subject: [PATCH] Additional fix --- CRM/Event/Form/Task/Register.php | 2 +- CRM/Event/Page/Tab.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/Task/Register.php b/CRM/Event/Form/Task/Register.php index b13a5619db24..e9ca978c2f69 100644 --- a/CRM/Event/Form/Task/Register.php +++ b/CRM/Event/Form/Task/Register.php @@ -71,7 +71,7 @@ protected function assignUrlPath() { $this->_contactId = NULL; //set ajax path, this used for custom data building - $this->assign('urlPath', $urlString); + $this->assign('urlPath', 'civicrm/contact/view/participant'); $this->assign('urlPathVar', "_qf_Participant_display=true&qfKey={$this->controller->_key}"); } diff --git a/CRM/Event/Page/Tab.php b/CRM/Event/Page/Tab.php index 0ecd0f80631e..2c75b80d2d74 100644 --- a/CRM/Event/Page/Tab.php +++ b/CRM/Event/Page/Tab.php @@ -90,7 +90,7 @@ public function edit() { $controller = new CRM_Core_Controller_Simple( 'CRM_Event_Form_Participant', 'Create Participation', - $this->_action + $this->_action, FALSE, FALSE, TRUE ); $controller->setEmbedded(TRUE); @@ -122,7 +122,7 @@ public function preProcess() { $this->_action = CRM_Core_Action::ADD; } else { - $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); + $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this); $this->assign('contactId', $this->_contactId); // check logged in url permission