From f4f243585608346de614b0ec177be549e976c4bf Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Fri, 8 Aug 2025 17:43:58 +0100 Subject: [PATCH] Imports: Fixed errors causing user logout on import run Fixes #5754 --- app/Exports/Controllers/ImportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exports/Controllers/ImportController.php b/app/Exports/Controllers/ImportController.php index b938dac8e..0d3e2414b 100644 --- a/app/Exports/Controllers/ImportController.php +++ b/app/Exports/Controllers/ImportController.php @@ -89,7 +89,7 @@ class ImportController extends Controller try { $entity = $this->imports->runImport($import, $parent); } catch (ZipImportException $exception) { - session()->flush(); + session()->forget(['success', 'warning']); $this->showErrorNotification(trans('errors.import_zip_failed_notification')); return redirect($import->getUrl())->with('import_errors', $exception->errors); }