Fix searching servers

This commit is contained in:
Dane Everitt 2018-02-24 11:48:24 -06:00
parent be6b398e2d
commit f655188c58
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
## v0.7.2 (Derelict Dermodactylus) ## v0.7.2 (Derelict Dermodactylus)
### Fixed ### Fixed
* Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint. * Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint.
* Fixes search on server listing page.
### Added ### Added
* Adds ability to include egg variables on an API request. * Adds ability to include egg variables on an API request.

View File

@ -201,12 +201,13 @@ class ServersController extends Controller
/** /**
* Display the index page with all servers currently on the system. * Display the index page with all servers currently on the system.
* *
* @param \Illuminate\Http\Request $request
* @return \Illuminate\View\View * @return \Illuminate\View\View
*/ */
public function index() public function index(Request $request)
{ {
return view('admin.servers.index', [ return view('admin.servers.index', [
'servers' => $this->repository->getAllServers( 'servers' => $this->repository->setSearchTerm($request->input('query'))->getAllServers(
$this->config->get('pterodactyl.paginate.admin.servers') $this->config->get('pterodactyl.paginate.admin.servers')
), ),
]); ]);