Skip to content

A free open source IT asset/license management system

Merge branch 'develop' into fixes/bulk-checkin-logging

Marcus Moore41437e4d8f8f
diff --cc app/Http/Controllers/Users/BulkUsersController.php
index bfcc629229,489b2309bf..a48207030c
--- a/app/Http/Controllers/Users/BulkUsersController.php
+++ b/app/Http/Controllers/Users/BulkUsersController.php
@@@ -219,10 -218,10 +219,10 @@@ class BulkUsersController extends Contr
}
$users = User::whereIn('id', $user_raw_array)->get();
- $assets = Asset::whereIn('assigned_to', $user_raw_array)->where('assigned_type', \App\Models\User::class)->get();
- $accessoryUserRows = DB::table('accessories_checkout')->whereIn('assigned_to', $user_raw_array)->where('assigned_type', \App\Models\User::class)->get();
+ $assets = Asset::whereIn('assigned_to', $user_raw_array)->where('assigned_type', User::class)->get();
- $accessories = DB::table('accessories_checkout')->where('assigned_type', User::class)->whereIn('assigned_to', $user_raw_array)->get();
++ $accessoryUserRows = DB::table('accessories_checkout')->whereIn('assigned_to', $user_raw_array)->where('assigned_type', User::class)->get();
$licenses = DB::table('license_seats')->whereIn('assigned_to', $user_raw_array)->get();
- $consumables = DB::table('consumables_users')->whereIn('assigned_to', $user_raw_array)->get();
+ $consumableUserRows = DB::table('consumables_users')->whereIn('assigned_to', $user_raw_array)->get();
if ((($assets->count() > 0) && ((!$request->filled('status_id')) || ($request->input('status_id') == '')))) {
return redirect()->route('users.index')->with('error', 'No status selected');