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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user