From f26a140a010bacb15f74a49f314be7a9733d19bf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 17 Apr 2014 12:24:03 +0000 Subject: [PATCH] fixed search returns users, even if limited to groups --- etemplate/js/et2_widget_selectAccount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index 6d04099552..c5c4992ba4 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -372,9 +372,9 @@ var et2_selectAccount = et2_selectbox.extend( search.find('#search_results').empty(); } // 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; }, @@ -440,7 +440,7 @@ var et2_selectAccount = et2_selectbox.extend( var node = null; var self = this; - + // Make sure value is numeric if(item.value) item.value = parseInt(item.value);