Skip to content

Commit

Permalink
Additional fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Dec 5, 2020
1 parent 1320ff2 commit 833a247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Event/Form/Task/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}

Expand Down
4 changes: 2 additions & 2 deletions CRM/Event/Page/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 833a247

Please sign in to comment.