Ports #10494 to master

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2022-04-12 21:04:57 +01:00
parent 270143bb46
commit 1441cf9f4f
4 changed files with 28 additions and 10 deletions
@@ -26,7 +26,7 @@ class LicensesController extends Controller
public function index(Request $request)
{
$this->authorize('view', License::class);
$licenses = Company::scopeCompanyables(License::with('company', 'manufacturer', 'freeSeats', 'supplier','category')->withCount('freeSeats as free_seats_count'));
$licenses = Company::scopeCompanyables(License::with('company', 'manufacturer', 'supplier','category')->withCount('freeSeats as free_seats_count'));
if ($request->filled('company_id')) {