3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 09:25:26 +00:00

Fix re-population of assets

This commit is contained in:
Marcus Moore
2025-09-18 12:38:11 -07:00
parent e639d7726b
commit b2ad9d404e

View File

@ -653,8 +653,8 @@ class BulkAssetsController extends Controller
// if there is more than one unique company id or the singular company id does not match
// then the checkout is invalid
if ($company_ids->count() > 1 || $company_ids->first() != $target->company_id) {
// keep the session data around for the redirect so the assets select is re-populated
session()->reflash();
// re-add the asset ids so the assets select is re-populated
$request->session()->flashInput(['selected_assets' => $asset_ids]);
return redirect(route('hardware.bulkcheckout.show'))
// @todo: improve message and translate