]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 521536 - Allow user search by external id when using env authentication
authorAlbert Ting <altlist@gmail.com>
Fri, 16 Dec 2016 18:20:14 +0000 (18:20 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 16 Dec 2016 18:20:14 +0000 (18:20 +0000)
r=dkl,a=dkl

editusers.cgi
template/en/default/admin/users/search.html.tmpl

index 3bc648509b3105a0bcd3580041d65b8d5198deca..13f7a963c7980b1d44ef81c392f5ba3ce1a43f30 100755 (executable)
@@ -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";
             }
index f71589480201a50b3eac18086e40d77c61360058..73392631a9b2028692388fbaaa881918dd5466a8 100644 (file)
@@ -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>