A free open source IT asset/license management system
Pint
snipefa33f4a71da8
diff --git a/app/Http/Controllers/Accessories/AccessoryCheckoutController.php b/app/Http/Controllers/Accessories/AccessoryCheckoutController.phpindex 3406d9488e..43039acb5c 100644--- a/app/Http/Controllers/Accessories/AccessoryCheckoutController.php+++ b/app/Http/Controllers/Accessories/AccessoryCheckoutController.php@@ -249,7 +249,10 @@ class AccessoryCheckoutController extends Controller{$this->authorize('checkout', $accessory);- $enabledIds = collect((array) $request->input('enabled_requests', []))+ // Checkboxes post as enabled_requests[<request_id>]="1",+ // keyed by request id (unchecked boxes don't post at all).+ // Grab the array keys as the ticked-id list.+ $enabledIds = collect(array_keys((array) $request->input('enabled_requests', [])))->map(fn ($id) => (int) $id)->filter()->unique()diff --git a/app/Http/Controllers/AssetModelsController.php b/app/Http/Controllers/AssetModelsController.phpindex cebea52afe..bb37465579 100755--- a/app/Http/Controllers/AssetModelsController.php+++ b/app/Http/Controllers/AssetModelsController.php@@ -2,17 +2,22 @@namespace App\Http\Controllers;+use App\Actions\CheckoutRequests\FulfillCheckoutRequestAction;use App\Helpers\Helper;use App\Http\Requests\ImageUploadRequest;use App\Http\Requests\StoreAssetModelRequest;+use App\Models\Asset;use App\Models\AssetModel;+use App\Models\CheckoutRequest;use App\Models\CustomField;use App\Models\SnipeModel;+use App\Models\User;use Illuminate\Auth\Access\AuthorizationException;use Illuminate\Contracts\View\View;use Illuminate\Http\RedirectResponse;use Illuminate\Http\Request;use Illuminate\Support\Facades\DB;+use Illuminate\Support\Facades\Log;use Illuminate\Support\Facades\Storage;use Illuminate\Support\Facades\Validator;use Illuminate\Support\MessageBag;@@ -510,4 +515,224 @@ class AssetModelsController extends Controller{$model->defaultValues()->detach();}++ /**+ * Bulk-fulfill screen for a model's pending-request queue. An+ * AssetModel request ("I want a Macbook Pro 14") fulfills by+ * checking out a specific available Asset OF that model to the+ * requester - so each row here picks an asset from the model's+ * currently-available pool. Small pool = plain <select> picker+ * with the first available option pre-selected as an "auto-+ * pick" default (admins who don't care which specific unit can+ * just tick + submit, and admins who do care flip the select).+ *+ * Rows compete for the same limited pool, so the picker options+ * per row all draw from the SAME available-asset list up-front.+ * The store method serializes assignments and validates the+ * chosen asset is still free at commit time (rollback the row+ * if someone else grabbed it in between page-load and submit).+ */+ public function bulkFulfillRequests(AssetModel $model)+ {+ $this->authorize('checkout', Asset::class);++ $pendingRequests = CheckoutRequest::pending()+ ->where('requestable_type', AssetModel::class)+ ->where('requestable_id', $model->id)+ ->with('user')+ ->orderBy('created_at')+ ->orderBy('id')+ ->get()+ ->filter(fn (CheckoutRequest $r) => $r->user !== null)+ ->values();++ if ($pendingRequests->isEmpty()) {+ return redirect()->route('models.show', $model)+ ->with('info', trans('admin/hardware/message.requests.no_active'));+ }++ // Available = deployable-status assets of this model with+ // no current assignee. Same pool feeds every row's picker;+ // admins can hand out the same pre-selected first option+ // to N requesters by editing each row, or use the auto-+ // pick default and only fulfill up to available_count rows+ // at a time.+ $availableAssets = Asset::where('model_id', $model->id)+ ->whereNull('assigned_to')+ ->whereHas('status', fn ($q) => $q->where('deployable', 1))+ ->with('model')+ ->orderBy('asset_tag')+ ->get();++ // Auto-pick: pre-select a DIFFERENT asset per row so a+ // straight submit without edits doesn't collide (every+ // row defaulting to the first available asset would+ // conflict at commit-time with only the first row+ // winning). Nth row gets the Nth available asset in the+ // pool. If there are more rows than available assets,+ // the trailing rows pre-select the pool's last option+ // (admin has to manually resolve the overflow, or wait+ // for stock). The full pool still populates each select+ // so admins can override the auto-pick.+ $rowContext = [];+ $poolIndex = 0;+ foreach ($pendingRequests as $request) {+ $default = null;+ if ($availableAssets->isNotEmpty()) {+ $default = ($availableAssets[$poolIndex] ?? $availableAssets->last())->id;+ $poolIndex++;+ }+ $rowContext[$request->id] = [+ 'availableAssets' => $availableAssets,+ 'defaultAssetId' => $default,+ 'emptyMessage' => $availableAssets->isEmpty()+ ? trans('admin/hardware/message.requests.no_available_units')+ : null,+ ];+ }++ return view('checkouts/fulfill-multiple-to-asset', [+ 'item' => $model,+ 'pendingRequests' => $pendingRequests,+ 'rowContext' => $rowContext,+ 'formRoute' => route('models.fulfill-requests.store', $model),+ 'remaining' => $availableAssets->count(),+ // AssetModel is one asset per request (each fulfillment+ // consumes one unit from the pool); no per-row qty+ // input needed.+ 'hideQty' => true,+ ]);+ }++ /**+ * Iterate + fulfill. Each ticked row assigns the admin-picked+ * asset to the requester in its own transaction (per-row+ * partial-success). Uses lockForUpdate on the target asset to+ * catch the race where two admins load the same page and both+ * try to hand out the same unit - the second submit sees+ * assigned_to already set and skips the row with an error.+ *+ * Since the checkout target is a User (asset -> user), the+ * state-machine event listener catches the fulfillment and+ * closes the matching request automatically. No explicit+ * FulfillCheckoutRequestAction call needed here - but we call+ * it anyway as belt-and-suspenders for the case where the+ * listener would otherwise silently skip (e.g. LicenseSeat -+ * unrelated but same defensive pattern).+ */+ public function bulkFulfillStoreRequests(Request $request, AssetModel $model): RedirectResponse+ {+ $this->authorize('checkout', Asset::class);++ // Checkboxes post as enabled_requests[<request_id>]="1",+ // keyed by request id (unchecked boxes don't post at all).+ $enabledIds = collect(array_keys((array) $request->input('enabled_requests', [])))+ ->map(fn ($id) => (int) $id)+ ->filter()+ ->unique()+ ->values();++ if ($enabledIds->isEmpty()) {+ return redirect()->route('models.fulfill-requests.create', $model)+ ->with('error', trans('admin/hardware/message.requests.no_selection'));+ }++ $assetInputs = (array) $request->input('asset_id', []);+ $noteInputs = (array) $request->input('notes', []);++ $requests = CheckoutRequest::pending()+ ->where('requestable_type', AssetModel::class)+ ->where('requestable_id', $model->id)+ ->whereIn('id', $enabledIds)+ ->with('user')+ ->get()+ ->keyBy('id');++ $adminUser = auth()->user();+ $fulfilled = 0;+ $errors = [];++ foreach ($enabledIds as $requestId) {+ /** @var CheckoutRequest|null $checkoutRequest */+ $checkoutRequest = $requests->get($requestId);+ if (! $checkoutRequest) {+ $errors[] = trans('admin/hardware/message.requests.row_stale', ['id' => $requestId]);++ continue;+ }++ $targetAssetId = (int) ($assetInputs[$requestId] ?? 0);+ $note = $noteInputs[$requestId] ?? $checkoutRequest->notes;++ $requester = $checkoutRequest->user;+ if (! $requester) {+ $errors[] = trans('admin/hardware/message.requests.row_user_missing', ['id' => $requestId]);++ continue;+ }++ $checkedOut = false;++ DB::transaction(function () use ($model, $targetAssetId, $requester, $adminUser, $note, $requestId, &$errors, &$checkedOut): void {+ $locked = Asset::whereKey($targetAssetId)->lockForUpdate()->first();++ // Model + availability guard. The picker only offers+ // available assets of this model, but a hand-crafted+ // POST or a stale page load could point at an off-+ // model or already-assigned asset. Re-check both+ // under lock so the pool contract holds.+ if (! $locked || $locked->model_id !== $model->id) {+ $errors[] = trans('admin/hardware/message.requests.row_asset_not_available', ['id' => $requestId]);++ return;+ }+ if (! empty($locked->assigned_to)) {+ $errors[] = trans('admin/hardware/message.requests.row_asset_taken', ['id' => $requestId]);++ return;+ }+ if (! $locked->availableForCheckout()) {+ $errors[] = trans('admin/hardware/message.requests.row_asset_not_available', ['id' => $requestId]);++ return;+ }++ $checkedOut = (bool) $locked->checkOut(+ $requester,+ $adminUser,+ date('Y-m-d H:i:s'),+ null,+ $note,+ );+ });++ if (! $checkedOut) {+ continue;+ }++ // The state-machine listener only matches requestable_type=Asset;+ // AssetModel-typed request rows would slip past it. Call+ // the action explicitly, passing qty=1 - each row hands+ // out ONE asset, so a request for "3 laptops of this+ // model" needs three row-submits (or three model+ // requests) to fully close. Partial-fulfillment+ // tracking keeps the row on the queue between passes.+ try {+ FulfillCheckoutRequestAction::run($checkoutRequest, null, 1);+ } catch (\Throwable $e) {+ Log::warning('Bulk-fulfill state-machine close failed for request '.$requestId.': '.$e->getMessage());+ }++ $fulfilled++;+ }++ $summary = trans('admin/hardware/message.requests.bulk_summary', [+ 'fulfilled' => $fulfilled,+ 'total' => $enabledIds->count(),+ ]);++ return redirect()->route('requests.index')+ ->with($fulfilled > 0 ? 'success' : 'warning', $summary)+ ->with('multi_error_messages', $errors);+ }}diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.phpindex 4e6b72a2dc..e8043cf678 100755--- a/app/Http/Controllers/Assets/AssetsController.php+++ b/app/Http/Controllers/Assets/AssetsController.php@@ -995,7 +995,7 @@ class AssetsController extends Controller$this->authorize('canCheckoutAtLeastOneItemType');$ids = $request->input('ids', []);- if (!is_array($ids) || empty($ids)) {+ if (! is_array($ids) || empty($ids)) {return redirect()->route('requests.index')->with('error', trans('general.bulk.delete.nothing_selected', ['object_type' => trans('admin/hardware/general.requested'),@@ -1012,11 +1012,11 @@ class AssetsController extends Controllerforeach ($requests as $checkoutRequest) {$requestable = $checkoutRequest->itemRequested();- if (!$requestable) {+ if (! $requestable) {continue;}- if (!Company::isCurrentUserHasAccess($requestable)) {+ if (! Company::isCurrentUserHasAccess($requestable)) {continue;}@@ -1029,7 +1029,7 @@ class AssetsController extends Controller$permissionType = $checkoutRequest->requestable_type === AssetModel::class? Asset::class: $checkoutRequest->requestable_type;- if (!$user->isSuperUser() && !$user->can('checkout', $permissionType)) {+ if (! $user->isSuperUser() && ! $user->can('checkout', $permissionType)) {continue;}diff --git a/app/Http/Controllers/Components/ComponentCheckoutController.php b/app/Http/Controllers/Components/ComponentCheckoutController.phpindex f2f3d1d591..478d06944a 100644--- a/app/Http/Controllers/Components/ComponentCheckoutController.php+++ b/app/Http/Controllers/Components/ComponentCheckoutController.php@@ -276,7 +276,9 @@ class ComponentCheckoutController extends Controller{$this->authorize('checkout', $component);- $enabledIds = collect((array) $request->input('enabled_requests', []))+ // Checkboxes post as enabled_requests[<request_id>]="1",+ // keyed by request id (unchecked boxes don't post at all).+ $enabledIds = collect(array_keys((array) $request->input('enabled_requests', [])))->map(fn ($id) => (int) $id)->filter()->unique()diff --git a/app/Http/Controllers/Consumables/ConsumableCheckoutController.php b/app/Http/Controllers/Consumables/ConsumableCheckoutController.phpindex 26879ba0b4..f4bc8ce770 100644--- a/app/Http/Controllers/Consumables/ConsumableCheckoutController.php+++ b/app/Http/Controllers/Consumables/ConsumableCheckoutController.php@@ -256,7 +256,9 @@ class ConsumableCheckoutController extends Controller{$this->authorize('checkout', $consumable);- $enabledIds = collect((array) $request->input('enabled_requests', []))+ // Checkboxes post as enabled_requests[<request_id>]="1",+ // keyed by request id (unchecked boxes don't post at all).+ $enabledIds = collect(array_keys((array) $request->input('enabled_requests', [])))->map(fn ($id) => (int) $id)->filter()->unique()diff --git a/app/Http/Controllers/Licenses/LicenseCheckoutController.php b/app/Http/Controllers/Licenses/LicenseCheckoutController.phpindex 27793500a3..7c460afeff 100644--- a/app/Http/Controllers/Licenses/LicenseCheckoutController.php+++ b/app/Http/Controllers/Licenses/LicenseCheckoutController.php@@ -426,7 +426,9 @@ class LicenseCheckoutController extends Controller{$this->authorize('checkout', $license);- $enabledIds = collect((array) $request->input('enabled_requests', []))+ // Checkboxes post as enabled_requests[<request_id>]="1",+ // keyed by request id (unchecked boxes don't post at all).+ $enabledIds = collect(array_keys((array) $request->input('enabled_requests', [])))->map(fn ($id) => (int) $id)->filter()->unique()diff --git a/app/Http/Controllers/ViewAssetsController.php b/app/Http/Controllers/ViewAssetsController.phpindex d7e2bbc061..9185f996e8 100755--- a/app/Http/Controllers/ViewAssetsController.php+++ b/app/Http/Controllers/ViewAssetsController.php@@ -168,18 +168,7 @@ class ViewAssetsController extends Controller'licenses' => License::RequestableLicenses()->count(),];- // First tab with a non-zero reachable-count wins the active- // class. Null when every tab is empty; the view short-- // circuits to an empty-state alert in that case.- $activeTab = null;- foreach (['assets', 'models', 'accessories', 'consumables', 'components', 'licenses'] as $tab) {- if ($counts[$tab] > 0) {- $activeTab = $tab;- break;- }- }-- return view('account/requestable-assets', compact('counts', 'activeTab'));+ return view('account/requestable-assets', compact('counts'));}public function getRequestItem(Request $request, $itemType, $itemId = null, $requestingUser = null): RedirectResponsediff --git a/database/migrations/2026_08_20_000000_add_requestable_to_components_table.php b/database/migrations/2026_08_20_000000_add_requestable_to_components_table.phpindex 190bd7a2c7..ee8e709a99 100644--- a/database/migrations/2026_08_20_000000_add_requestable_to_components_table.php+++ b/database/migrations/2026_08_20_000000_add_requestable_to_components_table.php@@ -4,7 +4,6 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration{public function up(): voiddiff --git a/database/migrations/2026_08_20_010000_add_reservation_dates_to_checkout_requests.php b/database/migrations/2026_08_20_010000_add_reservation_dates_to_checkout_requests.phpindex 57c63f3b52..b067f53110 100644--- a/database/migrations/2026_08_20_010000_add_reservation_dates_to_checkout_requests.php+++ b/database/migrations/2026_08_20_010000_add_reservation_dates_to_checkout_requests.php@@ -4,7 +4,6 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration{public function up(): voiddiff --git a/database/migrations/2026_08_20_020000_add_requestable_to_licenses_table.php b/database/migrations/2026_08_20_020000_add_requestable_to_licenses_table.phpindex 6d40fa17ee..70a0fa201b 100644--- a/database/migrations/2026_08_20_020000_add_requestable_to_licenses_table.php+++ b/database/migrations/2026_08_20_020000_add_requestable_to_licenses_table.php@@ -4,7 +4,6 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration{public function up(): voiddiff --git a/resources/views/checkouts/fulfill-multiple-to-asset.blade.php b/resources/views/checkouts/fulfill-multiple-to-asset.blade.phpindex df3ccfdf6e..06397d9b30 100644--- a/resources/views/checkouts/fulfill-multiple-to-asset.blade.php+++ b/resources/views/checkouts/fulfill-multiple-to-asset.blade.php@@ -14,24 +14,29 @@@section('content')- <x-container class="col-md-8 col-md-offset-2">+ <x-container class="col-md-6 col-md-offset-3"><x-form :route="$formRoute" id="fulfill_multiple_form"><x-box :header="($item->display_name ?? $item->name).($remaining !== null ? ' ('.(int) $remaining.' '.trans('admin/components/general.remaining').')' : '')">- @if ($remaining !== null)- <x-form.static :label="trans('admin/components/general.remaining')">- {{ (int) $remaining }}- </x-form.static>- @endif-- @if ($item->company ?? null)- <x-form.static :label="trans('general.company')">{!! $item->company->present()->formattedNameLink !!}</x-form.static>- @endif-- @if ($item->category ?? null)- <x-form.static :label="trans('general.category')">{!! $item->category->present()->formattedNameLink !!}</x-form.static>- @endif+ {{-- Check-all toggle. Uses the shared+ data-toggle="check-all" handler from+ snipeit.js which toggles every non-disabled+ checkbox in the enclosing form. Rows whose+ available-asset set is empty render their+ checkbox disabled so this toggle skips them.+ Sits in the col-md-3 label slot so it lines+ up with each row's checkbox below; wrapped+ in a .form-control label so the checkbox ++ text stay inline. --}}+ <div class="form-group">+ <div class="col-md-3">+ <label class="form-control">+ <input type="checkbox" data-toggle="check-all">+ {{ trans('general.select_all_none') }}+ </label>+ </div>+ </div>{{-- $rowContext[$requestId] = ['availableAssets' => Collection, 'emptyMessage' => ?string]Rows whose availableAssets is empty render thediff --git a/routes/api.php b/routes/api.phpindex 0e20334d7a..73b8a9c6a7 100644--- a/routes/api.php+++ b/routes/api.php@@ -64,7 +64,6 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'api-throttle:api']], fuRoute::post('logout', [Api\ProfileController::class, 'logout'])->name('api.logout');-Route::get('requests', [Api\CheckoutRequest::class, 'index'])->name('api.requests.index');diff --git a/tests/Feature/Accessories/Ui/BulkFulfillAccessoryTest.php b/tests/Feature/Accessories/Ui/BulkFulfillAccessoryTest.phpindex 5057916ce7..6e74e99bb1 100644--- a/tests/Feature/Accessories/Ui/BulkFulfillAccessoryTest.php+++ b/tests/Feature/Accessories/Ui/BulkFulfillAccessoryTest.php@@ -92,7 +92,7 @@ class BulkFulfillAccessoryTest extends TestCase$this->actingAs($admin)->post(route('accessories.fulfill-requests.store', $accessory), [- 'enabled_requests' => [$aliceRequest->id],+ 'enabled_requests' => [$aliceRequest->id => '1'],'user_id' => [$aliceRequest->id => $alice->id],'qty' => [$aliceRequest->id => 2],'notes' => [$aliceRequest->id => ''],@@ -121,7 +121,7 @@ class BulkFulfillAccessoryTest extends TestCase$this->actingAs($admin)->post(route('accessories.fulfill-requests.store', $accessory), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'user_id' => [$request->id => $requester->id],'qty' => [$request->id => 1],'notes' => [$request->id => ''],@@ -162,7 +162,10 @@ class BulkFulfillAccessoryTest extends TestCase$this->actingAs($admin)->post(route('accessories.fulfill-requests.store', $accessory), [- 'enabled_requests' => [$canceledRequest->id, $stillPending->id],+ 'enabled_requests' => [+ $canceledRequest->id => '1',+ $stillPending->id => '1',+ ],'user_id' => [$canceledRequest->id => $alice->id,$stillPending->id => $bob->id,diff --git a/tests/Feature/AssetModels/Ui/BulkFulfillAssetModelTest.php b/tests/Feature/AssetModels/Ui/BulkFulfillAssetModelTest.phpindex 59d5e16e51..4475038daf 100644--- a/tests/Feature/AssetModels/Ui/BulkFulfillAssetModelTest.php+++ b/tests/Feature/AssetModels/Ui/BulkFulfillAssetModelTest.php@@ -63,7 +63,7 @@ class BulkFulfillAssetModelTest extends TestCase$this->actingAs($admin)->post(route('models.fulfill-requests.store', $model), [- 'enabled_requests' => [$aliceReq->id, $bobReq->id],+ 'enabled_requests' => [$aliceReq->id => '1', $bobReq->id => '1'],'asset_id' => [$aliceReq->id => $assetA->id,$bobReq->id => $assetB->id,@@ -106,7 +106,7 @@ class BulkFulfillAssetModelTest extends TestCase$this->actingAs($admin)->post(route('models.fulfill-requests.store', $model), [- 'enabled_requests' => [$aliceReq->id, $bobReq->id],+ 'enabled_requests' => [$aliceReq->id => '1', $bobReq->id => '1'],'asset_id' => [$aliceReq->id => $asset->id,$bobReq->id => $asset->id,@@ -144,7 +144,7 @@ class BulkFulfillAssetModelTest extends TestCase$this->actingAs($admin)->post(route('models.fulfill-requests.store', $model), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'asset_id' => [$request->id => $offModelAsset->id],'notes' => [],])diff --git a/tests/Feature/Components/Ui/BulkFulfillComponentTest.php b/tests/Feature/Components/Ui/BulkFulfillComponentTest.phpindex b8f0a7f2a9..6fa4b3461a 100644--- a/tests/Feature/Components/Ui/BulkFulfillComponentTest.php+++ b/tests/Feature/Components/Ui/BulkFulfillComponentTest.php@@ -89,7 +89,7 @@ class BulkFulfillComponentTest extends TestCase$this->actingAs($admin)->post(route('components.fulfill-requests.store', $component), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'asset_id' => [$request->id => $targetAsset->id],'qty' => [$request->id => 2],'notes' => [],@@ -120,7 +120,7 @@ class BulkFulfillComponentTest extends TestCase$this->actingAs($admin)->post(route('components.fulfill-requests.store', $component), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'asset_id' => [$request->id => $someoneElsesAsset->id],'qty' => [$request->id => 1],'notes' => [],@@ -146,7 +146,7 @@ class BulkFulfillComponentTest extends TestCase$this->actingAs($admin)->post(route('components.fulfill-requests.store', $component), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'asset_id' => [$request->id => $targetAsset->id],'qty' => [$request->id => 2],'notes' => [],diff --git a/tests/Feature/Consumables/Ui/BulkFulfillConsumableTest.php b/tests/Feature/Consumables/Ui/BulkFulfillConsumableTest.phpindex e0033ae84f..a7d01fef86 100644--- a/tests/Feature/Consumables/Ui/BulkFulfillConsumableTest.php+++ b/tests/Feature/Consumables/Ui/BulkFulfillConsumableTest.php@@ -53,7 +53,7 @@ class BulkFulfillConsumableTest extends TestCase$this->actingAs($admin)->post(route('consumables.fulfill-requests.store', $consumable), [- 'enabled_requests' => [$aliceRequest->id],+ 'enabled_requests' => [$aliceRequest->id => '1'],'user_id' => [$aliceRequest->id => $alice->id],'qty' => [$aliceRequest->id => 2],'notes' => [$aliceRequest->id => ''],@@ -79,7 +79,7 @@ class BulkFulfillConsumableTest extends TestCase$this->actingAs($admin)->post(route('consumables.fulfill-requests.store', $consumable), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'user_id' => [$request->id => $requester->id],'qty' => [$request->id => 2],'notes' => [$request->id => ''],diff --git a/tests/Feature/Licenses/Ui/BulkFulfillLicenseTest.php b/tests/Feature/Licenses/Ui/BulkFulfillLicenseTest.phpindex 5a020de518..633935bfc1 100644--- a/tests/Feature/Licenses/Ui/BulkFulfillLicenseTest.php+++ b/tests/Feature/Licenses/Ui/BulkFulfillLicenseTest.php@@ -74,7 +74,7 @@ class BulkFulfillLicenseTest extends TestCase$this->actingAs($admin)->post(route('licenses.fulfill-requests.store', $license), [- 'enabled_requests' => [$aliceReq->id, $bobReq->id],+ 'enabled_requests' => [$aliceReq->id => '1', $bobReq->id => '1'],'user_id' => [$aliceReq->id => $alice->id,$bobReq->id => $bob->id,@@ -115,7 +115,7 @@ class BulkFulfillLicenseTest extends TestCase$this->actingAs($admin)->post(route('licenses.fulfill-requests.store', $license), [- 'enabled_requests' => [$request->id],+ 'enabled_requests' => [$request->id => '1'],'user_id' => [$request->id => $requester->id],'qty' => [$request->id => 99],'notes' => [],