Skip to content

Commit

Permalink
Merge pull request #26488 from eileenmcnaughton/event_reg
Browse files Browse the repository at this point in the history
Fix back office register form validation
  • Loading branch information
demeritcowboy authored Jun 9, 2023
2 parents 13fd0a6 + ee96b64 commit ffdb7d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Event/Form/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ public function buildQuickForm() {
* @return void
*/
public function addRules(): void {
$this->addFormRule(['CRM_Event_Form_Participant', 'formRule']);
$this->addFormRule(['CRM_Event_Form_Participant', 'formRule'], $this);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/Form/Task/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function postProcess(): void {
* @return void
*/
public function addRules(): void {
$this->addFormRule(['CRM_Event_Form_Task_Register', 'formRule']);
$this->addFormRule(['CRM_Event_Form_Task_Register', 'formRule'], $this);
}

/**
Expand Down

0 comments on commit ffdb7d9

Please sign in to comment.