Back to Swal Support

SWAL weird issue with repeating notifications on page refresh

Post a reply
1655 views
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

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.