Defect #8029
closed
List of users for adding to a group may be empty if 100 first users have been added
Added by Petr Pospisil over 13 years ago.
Updated over 13 years ago.
Description
Hello,
Why I cannot add more than 100 users to group? Because line 27 at /groups/_users.html.rb:
<% users = User.active.find(:all, :limit => 100) - @group.users %>
It is wrong. After 100 users added to group, the variable users is forever blank. Even when I have hundreds users.
Thanks for fix
Petr
- Target version set to Candidate for next minor release
Just type a few letters in the field above the list and the user you want to add will show up.
Can't we add a named scope User#not_in_group(user_group)
for correctness ?
(or something like this)
- Subject changed from /groups/_users.html.erb to List of users for adding to a group may be empty if 100 first users have been added
- Status changed from New to Closed
- Target version changed from Candidate for next minor release to 1.2.0
- Resolution set to Fixed
Just done in r5284 before I saw your update :-)
User.not_in_group() actually.
Also available in: Atom
PDF