Fix ticket reopen

This commit is contained in:
Jérémy Munsch 2022-04-07 15:06:28 +02:00
parent ad58d910b4
commit 22efb2848a
No known key found for this signature in database
GPG key ID: 55196BEE445F6049

View file

@ -384,7 +384,7 @@ class TicketController extends Controller
$ticket->status = TicketStatus::inprogress();
$ticket->saveQuietly();
event(new TicketStatusChanged($ticket, $oldStatus, null, $message));
event(new NotifySubscriptions($ticket, $message, collect($ticket->user)));
event(new NotifySubscriptions($ticket, $message, collect([$ticket->user])));
User::find(Auth::user()->id)->subscriptions()->toggle($ticket->id);
return back()->with('warning', trans('Votre ticket à été réouvert.'));
}