From f2d520af9c081190f9ced620789d9fffb7f6fb17 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Wed, 21 Aug 2024 12:55:37 +0000
Subject: [PATCH] jsupdater should not tinker with the flash, fixes #4507

Closes #4507

Merge request studip/studip!3300
---
 app/controllers/jsupdater.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/controllers/jsupdater.php b/app/controllers/jsupdater.php
index 8860f8de58f..679f590116c 100644
--- a/app/controllers/jsupdater.php
+++ b/app/controllers/jsupdater.php
@@ -30,6 +30,9 @@ class JsupdaterController extends AuthenticatedController
     {
         parent::before_filter($action, $args);
 
+        // Keep all things in flash, this controller show tinker with those values
+        $this->flash->keep();
+
         // Check for a valid logged in user (only when an ajax request occurs)
         if (Request::isXhr() && (!is_object($GLOBALS['user']) || $GLOBALS['user']->id === 'nobody')) {
             $this->response->set_status(403);
-- 
GitLab