Commit 1c4575f7 authored by git's avatar git Committed by Owen Bush
Browse files

Issue #3282171 by endless_wander, owenbush: No "Promotion Notification" email...

Issue #3282171 by endless_wander, owenbush: No "Promotion Notification" email sent if registrant's waitlist value is manually updated
parent 5fc06092
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -95,6 +95,14 @@ class Registrant extends EditorialContentEntityBase implements RegistrantInterfa
      }
      recurring_events_registration_send_notification($key, $this);
    }

    if ($update) {
      // if originally on waitlist and was promoted, send the promotion notification
      if ($this->original->getWaitlist() && !$this->getWaitlist()) {
        $key = 'promotion_notification';
        recurring_events_registration_send_notification($key, $this);
      }
    }
  }

  /**