Skip to content

Commit b408ad2

Browse files
committed
[smarcet] - #13334
* second break out email : remove count limitation on sending process
1 parent ae939ee commit b408ad2

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

summit/code/infrastructure/active_records/events/presentations/PresentationSpeaker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,9 +1363,9 @@ public function membershipCreateEmailAlreadySent()
13631363
*/
13641364
public function registerBreakOutSent($summit_id, $type)
13651365
{
1366-
if ($this->breakoutEmailAlreadySent($summit_id)) {
1366+
/*if ($this->breakoutEmailAlreadySent($summit_id)) {
13671367
throw new Exception('Second Breakout Email already sent');
1368-
}
1368+
}*/
13691369

13701370
$email = SpeakerAnnouncementSummitEmail::create();
13711371
$email->SpeakerID = $this->ID;

summit/code/infrastructure/factories/SpeakerSecondBreakOutSenderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function build(ISummit $summit, IPresentationSpeaker $speaker)
3131
* If the user is already registered, we shouldn't send their code again: ( confirmed assistance for summit)
3232
* they still need the email, just not the part with the code. Probably a slightly altered verbiage as well
3333
*/
34-
if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) return null;
34+
//if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) return null;
3535

3636
if($speaker->hasConfirmedAssistanceFor($summit->getIdentifier())){
3737
// send reminder without code

summit/code/infrastructure/services/PresentationSpeakerConfirmSummitAssistanceEmailReminderSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function send($subject)
3737
if(!$promo_code instanceof SpeakerSummitRegistrationPromoCode) return;
3838

3939
if($speaker->hasConfirmedAssistanceFor($summit->getIdentifier())) throw new EntityValidationException('Speaker Already confirmed Assistance!');
40-
if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) throw new EntityValidationException('Speaker Email already Sent!');
40+
//if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) throw new EntityValidationException('Speaker Email already Sent!');
4141
$email = PermamailTemplate::get()->filter('Identifier', PRESENTATION_SPEAKER_CONFIRM_SUMMIT_ASSISTANCE_EMAIL)->first();
4242
if(is_null($email)) throw new NotFoundEntityException(sprintf('Email Template %s does not exists on DB!', PRESENTATION_SPEAKER_CONFIRM_SUMMIT_ASSISTANCE_EMAIL));
4343

summit/code/infrastructure/services/PresentationSpeakerSummitReminderEmailSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function send($subject)
3535
if(!$speaker instanceof IPresentationSpeaker) return;
3636
if(!$summit instanceof ISummit) return;
3737

38-
if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) throw new EntityValidationException('Speaker Email already Sent!');
38+
//if($speaker->breakoutEmailAlreadySent($summit->getIdentifier())) throw new EntityValidationException('Speaker Email already Sent!');
3939
$email = PermamailTemplate::get()->filter('Identifier', PRESENTATION_SPEAKER_SUMMIT_REMINDER_EMAIL)->first();
4040
if(is_null($email)) throw new NotFoundEntityException(sprintf('Email Template %s does not exists on DB!', PRESENTATION_SPEAKER_SUMMIT_REMINDER_EMAIL));
4141

summit/code/models/managers/SpeakerSecondBreakoutAnnouncementSenderManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function send(ISummit $current_summit, $batch_size)
113113
$email = $speaker->getEmail();
114114
if (empty($email)) continue;
115115

116-
if ($speaker->breakoutEmailAlreadySent($current_summit->ID)) continue;
116+
//if ($speaker->breakoutEmailAlreadySent($current_summit->ID)) continue;
117117

118118
/**
119119
* Rules are:

0 commit comments

Comments
 (0)