Skip to content
Snippets Groups Projects
Commit 8625bf5b authored by Ranjit Sahoo's avatar Ranjit Sahoo Committed by Andrii Podanenko
Browse files

Issue #3347935 by Ranjit1032002: Notice: Undefined variable: altered_redirect...

Issue #3347935 by Ranjit1032002: Notice: Undefined variable: altered_redirect when editing a registrant
parent d4543dda
No related branches found
No related tags found
No related merge requests found
...@@ -491,7 +491,9 @@ class RegistrantForm extends ContentEntityForm { ...@@ -491,7 +491,9 @@ class RegistrantForm extends ContentEntityForm {
$reg_type = $this->creationService->getRegistrationType(); $reg_type = $this->creationService->getRegistrationType();
$registration = $this->creationService->hasRegistration(); $registration = $this->creationService->hasRegistration();
$this->notificationService->setEntity($this->entity); if (isset($this->notificationService) && isset($this->entity)) {
$this->notificationService->setEntity($this->entity);
}
if ($registration && $registration_open && ($availability > 0 || $availability == -1 || $waitlist)) { if ($registration && $registration_open && ($availability > 0 || $availability == -1 || $waitlist)) {
$add_to_waitlist = (int) $form_state->getValue('add_to_waitlist'); $add_to_waitlist = (int) $form_state->getValue('add_to_waitlist');
$this->entity->setEventSeries($event_series); $this->entity->setEventSeries($event_series);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment