Commit a95071d7 authored by God Ly's avatar God Ly Committed by it2000

OF-368 - fixed user-summary.jsp which now returns range=3 instead of -1 for 3...

OF-368 - fixed user-summary.jsp which now returns range=3 instead of -1 for 3 users. fixed DefaultUserProvider.java which did return all users instead of start-range (introduced during removal of duplicate code)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11767 b35dd754-fafc-0310-a699-88a17e54d16e
parent c532f7d7
...@@ -290,7 +290,7 @@ public class DefaultUserProvider implements UserProvider { ...@@ -290,7 +290,7 @@ public class DefaultUserProvider implements UserProvider {
} }
public Collection<User> getUsers(int startIndex, int numResults) { public Collection<User> getUsers(int startIndex, int numResults) {
Collection<String> usernames = getUsernames(0, Integer.MAX_VALUE); Collection<String> usernames = getUsernames(startIndex, numResults);
return new UserCollection(usernames.toArray(new String[usernames.size()])); return new UserCollection(usernames.toArray(new String[usernames.size()]));
} }
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<% for (int aRANGE_PRESETS : RANGE_PRESETS) { %> <% for (int aRANGE_PRESETS : RANGE_PRESETS) { %>
<option value="<%= aRANGE_PRESETS %>" <option value="<% if (aRANGE_PRESETS > 0) { %><%= aRANGE_PRESETS %><% }else{ %><%= userCount %><%}%>"
<%= (aRANGE_PRESETS == range ? "selected" : "") %>><% if (aRANGE_PRESETS > 0) { %><%= aRANGE_PRESETS %><% }else{ %><%= userCount %><%}%> <%= (aRANGE_PRESETS == range ? "selected" : "") %>><% if (aRANGE_PRESETS > 0) { %><%= aRANGE_PRESETS %><% }else{ %><%= userCount %><%}%>
</option> </option>
......
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