Swal

Display Flash messages on front-end

Back to Swal Support

roulendz
roulendz

I have a really weird issue, and cannot figure out where is the problem. Maybe someone has had a similar issue! Please see a video!

https://www.youtube.com/watch?v=nY7jnlnqKtw

In short, if I get flash alert, on the page where I use SWAL on every page refresh I get repeated the previous flash message.

planetadeleste
planetadeleste

@roulendz Maybe the alert are not deleted from cache after it's show up. I will to check the SWAL script to be sure this is not a plugin bug.

Thanks for report

plamondonjordan28685
plamondonjordan28685

I have the same issue. Adding this to FlashBag.php seems to fix the this issue :

public function getMessages()
{
        $messages = $this->messages();
        $this->purge();
        return $messages;
 }

https://octobercms.com/docs/api/october/rain/flash/flashbag

Last updated

roulendz
roulendz

plamondonjordan28685 said:

I have the same issue. Adding this to FlashBag.php seems to fix the this issue :

public function getMessages()
{
       $messages = $this->messages();
       $this->purge();
       return $messages;
}

https://octobercms.com/docs/api/october/rain/flash/flashbag

Where this file is located?

1-4 of 4