From: Dan Brown Date: Fri, 8 Aug 2025 16:43:58 +0000 (+0100) Subject: Imports: Fixed errors causing user logout on import run X-Git-Tag: v25.07.1~1^2~8 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/f4f243585608346de614b0ec177be549e976c4bf Imports: Fixed errors causing user logout on import run Fixes #5754 --- 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); }