From f9559a7a58b4f92559c14385a2061c61749e3315 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Sat, 15 Sep 2018 23:23:20 -0700 Subject: [PATCH] Fix flash messages on reply --- app/Http/Controllers/ConversationsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/ConversationsController.php b/app/Http/Controllers/ConversationsController.php index 40de6177..8671b690 100644 --- a/app/Http/Controllers/ConversationsController.php +++ b/app/Http/Controllers/ConversationsController.php @@ -724,6 +724,11 @@ class ConversationsController extends Controller $response['status'] = 'success'; } + + // Reflash session data - otherwise on reply flash alert is not displayed + // https://stackoverflow.com/questions/37019294/laravel-ajax-call-deletes-session-flash-data + \Session::reflash(); + break; // Discard draft (from new conversation, from reply or conversation)