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

@ -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;
}