summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2016-12-16 19:20:14 +0100
committerDavid Lawrence <dkl@mozilla.com>2016-12-16 19:20:14 +0100
commit1a0c5438e6394e9225720d21de1ac3a6fb524322 (patch)
tree39c7d267b6f7f7dddcc6f5555dfe5b496d5f7d67
parent3fb30abd2c1aea9aaeb0389f1102f7405a15ff8b (diff)
downloadbugzilla-1a0c5438e6394e9225720d21de1ac3a6fb524322.tar.gz
bugzilla-1a0c5438e6394e9225720d21de1ac3a6fb524322.tar.xz
Bug 521536 - Allow user search by external id when using env authentication
r=dkl,a=dkl
-rwxr-xr-xeditusers.cgi2
-rw-r--r--template/en/default/admin/users/search.html.tmpl1
2 files changed, 3 insertions, 0 deletions
diff --git a/editusers.cgi b/editusers.cgi
index 3bc648509..13f7a963c 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -132,6 +132,8 @@ if ($action eq 'search') {
$expr = 'profiles.email';
} elsif ($matchvalue eq 'realname') {
$expr = "profiles.realname";
+ } elsif ($matchvalue eq 'extern_id') {
+ $expr = "profiles.extern_id";
} else {
$expr = "profiles.login_name";
}
diff --git a/template/en/default/admin/users/search.html.tmpl b/template/en/default/admin/users/search.html.tmpl
index f71589480..73392631a 100644
--- a/template/en/default/admin/users/search.html.tmpl
+++ b/template/en/default/admin/users/search.html.tmpl
@@ -33,6 +33,7 @@
<option value="email">email address</option>
<option value="realname">real name</option>
<option value="userid">user id</option>
+ <option value="extern_id">external id</option>
</select>
<label for="matchstr">matching</label>
<input size="32" name="matchstr" id="matchstr" autofocus>