Skip to content

Commit

Permalink
Partial fix for broken tokens in event confirmation email
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaphoneJon committed Jan 7, 2025
1 parent 2522394 commit 5bc5edd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Event/Form/ManageEvent/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ public function setDefaultValues() {
return $defaults;
}

/**
* Prevent tokens within URLs on comfirm_email_text from being munged.
*/
protected function getFieldsToExcludeFromPurification(): array {
return ['confirm_email_text'];
}
/**
* Fix what blocks to show/hide based on the default values set
*
Expand Down
7 changes: 7 additions & 0 deletions CRM/Event/Form/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -2091,4 +2091,11 @@ private function buildAmount(): void {
$this->assign('priceSet', $this->_priceSet);
}

/**
* Prevent tokens within URLs on comfirm_email_text from being munged.
*/
protected function getFieldsToExcludeFromPurification(): array {
return ['receipt_text'];
}

}

0 comments on commit 5bc5edd

Please sign in to comment.