fixed search returns users, even if limited to groups

This commit is contained in:
Ralf Becker 2014-04-17 12:24:03 +00:00
parent 2fc95f3101
commit f26a140a01

View File

@ -372,9 +372,9 @@ var et2_selectAccount = et2_selectbox.extend(
search.find('#search_results').empty(); search.find('#search_results').empty();
} }
// Restrict to specified account type // Restrict to specified account type
if(!request['options'] || !request['options']['filter']) if(!request.options || !request.options.filter)
{ {
request['options'] = {filter:{group:self.options.account_type}}; request.options = {account_type: self.options.account_type};
} }
return true; return true;
}, },
@ -440,7 +440,7 @@ var et2_selectAccount = et2_selectbox.extend(
var node = null; var node = null;
var self = this; var self = this;
// Make sure value is numeric // Make sure value is numeric
if(item.value) item.value = parseInt(item.value); if(item.value) item.value = parseInt(item.value);