Commit 92f7cd9e authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1731404: fix suspended/ expired user select"

parents c2606289 b8d6797c
......@@ -127,7 +127,7 @@ jQuery(function ($) {
'offset': 0,
'sesskey': config['sesskey'],
'setlimit': true,
'type': $('usertype_type').value,
'type': $('#usertype_type option:selected').val(),
};
p.sendQuery(params);
event.preventDefault();
......
......@@ -220,7 +220,7 @@ return function(id, list, heading, script, extradata) {
if (firstLink.length) {
firstLink.focus();
}
else if (results.length) {
else if (results && results.length > 0) {
results.prop('tabindex', -1)
.addClass('hidefocus')
.focus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment