Pass the existing asset name to the bulk checkout form
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bd0b00e361
commit
3e47d9e689
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ class BulkAssetsController extends Controller
|
||||||
foreach ($asset_ids as $asset_id) {
|
foreach ($asset_ids as $asset_id) {
|
||||||
$asset = Asset::findOrFail($asset_id);
|
$asset = Asset::findOrFail($asset_id);
|
||||||
$this->authorize('checkout', $asset);
|
$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 != '') {
|
if ($target->location_id != '') {
|
||||||
$asset->location_id = $target->location_id;
|
$asset->location_id = $target->location_id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue