Skip to content

Commit f4f2435

Browse files
committed
Imports: Fixed errors causing user logout on import run
Fixes #5754
1 parent 7bc0d54 commit f4f2435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exports/Controllers/ImportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function run(int $id, Request $request)
8989
try {
9090
$entity = $this->imports->runImport($import, $parent);
9191
} catch (ZipImportException $exception) {
92-
session()->flush();
92+
session()->forget(['success', 'warning']);
9393
$this->showErrorNotification(trans('errors.import_zip_failed_notification'));
9494
return redirect($import->getUrl())->with('import_errors', $exception->errors);
9595
}

0 commit comments

Comments
 (0)