Pass the existing asset name to the bulk checkout form

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-24 09:54:46 -08:00
parent bd0b00e361
commit 3e47d9e689

View file

@ -288,7 +288,8 @@ class BulkAssetsController extends Controller
foreach ($asset_ids as $asset_id) {
$asset = Asset::findOrFail($asset_id);
$this->authorize('checkout', $asset);
$error = $asset->checkOut($target, $admin, $checkout_at, $expected_checkin, e($request->get('note')), null);
$error = $asset->checkOut($target, $admin, $checkout_at, $expected_checkin, e($request->get('note')), $asset->name, null);
if ($target->location_id != '') {
$asset->location_id = $target->location_id;