Skip to content

Commit

Permalink
fix license query for bulk licenses checkin for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Jan 22, 2025
1 parent 10a2d59 commit 5da8c86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Licenses/LicenseCheckinController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function bulkCheckin(Request $request, $licenseId) {
->get();

$count = 0;
$license = $licenseSeatsByAsset->first()?->license;
foreach ($licenseSeatsByAsset as $asset_seat) {
$asset_seat->asset_id = null;
if ($license && ! $license->reassignable) {
Expand Down

0 comments on commit 5da8c86

Please sign in to comment.