Skip to content

A free open source IT asset/license management system

Oh, pint

snipec14880dfcaa7
diff --git a/app/Models/Company.php b/app/Models/Company.php
index 1466571a81..c32dd3d222 100644
--- a/app/Models/Company.php
+++ b/app/Models/Company.php
@@ -475,12 +475,12 @@ final class Company extends SnipeModel
{
if (Setting::getSettings()->null_company_is_floater) {
return $query->where(function ($q) use ($companyIds) {
- $q->whereHas('companies', fn($q2) => $q2->whereIn('companies.id', $companyIds))
+ $q->whereHas('companies', fn ($q2) => $q2->whereIn('companies.id', $companyIds))
->orWhereDoesntHave('companies');
});
}
- return $query->whereHas('companies', fn($q) => $q->whereIn('companies.id', $companyIds));
+ return $query->whereHas('companies', fn ($q) => $q->whereIn('companies.id', $companyIds));
}
/**