A free open source IT asset/license management system
Fix re-population of assets
Marcus Mooreb2ad9d404ed9
diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.phpindex 90e306d8c3..74b342c2f3 100644--- a/app/Http/Controllers/Assets/BulkAssetsController.php+++ b/app/Http/Controllers/Assets/BulkAssetsController.php@@ -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 invalidif ($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