Skip to content

Commit fae5acf

Browse files
committed
Fix bug when loading server owner dropdown
closes pterodactyl#1137
1 parent 3bb9c52 commit fae5acf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* Fixes an issue with the sidebar logo not working correctly in some browsers due to the CSS being assigned.
99
* Fixes a bunch of typos through the code base.
10+
* Fixes a bug when attempting to load the dropdown menu for server owner in some cases.
1011

1112
### Added
1213
* Added a new client API endpoint for gathering the utilization stats for servers including disk, cpu, and memory. `GET /api/client/servers/<id>/utilization`

app/Contracts/Repository/UserRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function getAllUsersWithCounts(): LengthAwarePaginator;
1818
/**
1919
* Return all matching models for a user in a format that can be used for dropdowns.
2020
*
21-
* @param string $query
21+
* @param string|null $query
2222
* @return \Illuminate\Support\Collection
2323
*/
24-
public function filterUsersByQuery(string $query): Collection;
24+
public function filterUsersByQuery(?string $query): Collection;
2525
}

app/Repositories/Eloquent/UserRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function getAllUsersWithCounts(): LengthAwarePaginator
3737
/**
3838
* Return all matching models for a user in a format that can be used for dropdowns.
3939
*
40-
* @param string $query
40+
* @param string|null $query
4141
* @return \Illuminate\Support\Collection
4242
*/
43-
public function filterUsersByQuery(string $query): Collection
43+
public function filterUsersByQuery(?string $query): Collection
4444
{
4545
$this->setColumns([
4646
'id', 'email', 'username', 'name_first', 'name_last',

0 commit comments

Comments
 (0)