# HG changeset patch # User Marcin Kuzminski # Date 2016-11-06 17:12:41 # Node ID 276bfa3c482ba11360de6d5903e6c0ec034a2206 # Parent 4d236b89acbcba4ea4291d58112e90a7caf0c368 admin: fixed search in user admin page diff --git a/rhodecode/templates/admin/users/users.html b/rhodecode/templates/admin/users/users.html --- a/rhodecode/templates/admin/users/users.html +++ b/rhodecode/templates/admin/users/users.html @@ -50,16 +50,18 @@ $.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var query = $('#q_filter').val(); - var username = data[1]; - var email = data[2]; - var first_name = data[3]; - var last_name = data[4]; + + var username = data[0]; + var email = data[1]; + var first_name = data[2]; + var last_name = data[3]; var query_str = username + " " + email + " " + first_name + " " + last_name; - if((query_str).indexOf(query) !== -1){ + + if ((query_str).indexOf(query) !== -1) { return true; } return false;