From 07eeaea3bf37ba05f3dc48347339749ac659e029 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 4 Jan 2024 14:30:59 -0800 Subject: [PATCH] adds an additional clause --- app/Models/LicenseSeat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/LicenseSeat.php b/app/Models/LicenseSeat.php index 397a141468..9bd9a66cfa 100755 --- a/app/Models/LicenseSeat.php +++ b/app/Models/LicenseSeat.php @@ -127,6 +127,7 @@ class LicenseSeat extends SnipeModel implements ICompanyableChild return $query->leftJoin('users as license_seat_users', 'license_seats.assigned_to', '=', 'license_seat_users.id') ->leftJoin('departments as license_user_dept', 'license_user_dept.id', '=', 'license_seat_users.department_id') ->whereNotNull('license_seats.assigned_to') + ->whereNotNull('license_user_dept.id') ->orderBy('license_user_dept.name', $order); } }