Skip to content

Commit f655188

Browse files
committed
Fix searching servers
1 parent be6b398 commit f655188

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
66
## v0.7.2 (Derelict Dermodactylus)
77
### Fixed
88
* Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint.
9+
* Fixes search on server listing page.
910

1011
### Added
1112
* Adds ability to include egg variables on an API request.

app/Http/Controllers/Admin/ServersController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,13 @@ public function __construct(
201201
/**
202202
* Display the index page with all servers currently on the system.
203203
*
204+
* @param \Illuminate\Http\Request $request
204205
* @return \Illuminate\View\View
205206
*/
206-
public function index()
207+
public function index(Request $request)
207208
{
208209
return view('admin.servers.index', [
209-
'servers' => $this->repository->getAllServers(
210+
'servers' => $this->repository->setSearchTerm($request->input('query'))->getAllServers(
210211
$this->config->get('pterodactyl.paginate.admin.servers')
211212
),
212213
]);

0 commit comments

Comments
 (0)