search for owner:<email> correctly.

This commit is contained in:
Dane Everitt 2016-11-26 20:18:46 -05:00
parent b7a566a937
commit 946512bac9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 4 additions and 0 deletions

View file

@ -10,9 +10,11 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* Fixes a bug that would leave orphaned databases on the system if there was an error during creation.
* Fixes an issue that could occur if a UUID contained `#e#` formatting within it when it comes to creating databases.
* Fixed node status display to account for updated daemon security changes.
* Fixes default language being selected as German (defaults to English now).
### Changed
* Using `node:<name>` when filtering servers now properly filters the servers by node name, rather than looking for the node ID.
* Using `owner:<email>` when filtering servers now properly filters by the owner's email rather than ID.
* Added some quick help buttons to the admin index page for getting support or checking the documentation.
* Panel now displays `Pterodactyl Panel` as the company name if one is not set.

View file

@ -70,6 +70,8 @@ class ServersController extends Controller
list($field, $term) = explode(':', $match);
if ($field === 'node') {
$field = 'nodes.name';
} else if ($field === 'owner') {
$field = 'users.email';
} else if (!strpos($field, '.')) {
$field = 'servers.' . $field;
}