Merge branch 'trunk'
This commit is contained in:
commit
2d9f30f621
2 changed files with 3 additions and 5 deletions
|
|
@ -28,10 +28,8 @@ class AutoCloseOldTickets
|
|||
$oldStatus = $ticket->status;
|
||||
$ticket->status = TicketStatus::archived();
|
||||
$ticket->saveQuietly();
|
||||
if (!$ticket->subscriptions->contains($ticket->user)) {
|
||||
event(new TicketStatusChanged($ticket, $oldStatus, null, $message));
|
||||
}
|
||||
event(new NotifySubscriptions($ticket, $message));
|
||||
event(new TicketStatusChanged($ticket, $oldStatus, null, $message));
|
||||
event(new NotifySubscriptions($ticket, $message, collect($ticket->user)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class SendSubscriptionsNotificationsMail
|
|||
foreach ($event->ticket->subscriptions as $sub) {
|
||||
if (
|
||||
$sub->email !== $ignoreConnectedUserEmail and
|
||||
!$ignoreUsers->contains('email', $sub->email)
|
||||
!$ignoreUsers->contains($sub->email)
|
||||
) {
|
||||
Mail::to($sub->email)
|
||||
->send(new TicketUpdate($event->ticket, $event->corpsMaj));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue