From d2e47fd1e41f5766093716a56f01774d48a3d3c0 Mon Sep 17 00:00:00 2001 From: Speedy Date: Mon, 2 Sep 2024 02:00:27 +0200 Subject: [PATCH] As well as this one --- app/Http/Controllers/BrowseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/BrowseController.php b/app/Http/Controllers/BrowseController.php index ae549d4fba..a94bf8992a 100644 --- a/app/Http/Controllers/BrowseController.php +++ b/app/Http/Controllers/BrowseController.php @@ -399,7 +399,7 @@ public function getCharacters(Request $request) { 'characters' => $query->paginate(24)->appends($request->query()), 'categories' => [0 => 'Any Category'] + CharacterCategory::whereNotIn('id', $subCategories)->visible(Auth::user() ?? null)->orderBy('character_categories.sort', 'DESC')->pluck('name', 'id')->toArray(), 'specieses' => [0 => 'Any Species'] + Species::whereNotIn('id', $subSpecies)->visible(Auth::user() ?? null)->orderBy('specieses.sort', 'DESC')->pluck('name', 'id')->toArray(), - 'subtypes' => [0 => 'Any Subtype'] + Subtype::visible(Auth::user() ?? null)->orderBy('subtypes.sort', 'DESC')->pluck('name', 'id')->toArray(), + 'subtypes' => ['any' => 'Any Subtype', 'hybrid' => 'Multiple / Hybrid Subtypes'] + Subtype::visible(Auth::user() ?? null)->orderBy('subtypes.sort', 'DESC')->pluck('name', 'id')->toArray(), 'rarities' => [0 => 'Any Rarity'] + Rarity::orderBy('rarities.sort', 'DESC')->pluck('name', 'id')->toArray(), 'features' => Feature::getDropdownItems(), 'sublists' => Sublist::orderBy('sort', 'DESC')->get(),