Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Groups
Target version:
Start date:
2011-03-31
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

Actions #1

Updated by Etienne Massip over 13 years ago

  • Target version set to Candidate for next minor release
Actions #2

Updated by Jean-Philippe Lang over 13 years ago

Just type a few letters in the field above the list and the user you want to add will show up.

Actions #3

Updated by Etienne Massip over 13 years ago

Can't we add a named scope User#not_in_group(user_group) for correctness ?

(or something like this)

Actions #4

Updated by Jean-Philippe Lang over 13 years ago

  • 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 :-)

Actions #5

Updated by Jean-Philippe Lang over 13 years ago

User.not_in_group() actually.

Actions #6

Updated by Etienne Massip over 13 years ago

Niiiice =)

Actions #7

Updated by Petr Pospisil over 13 years ago

thanks for fix

Actions

Also available in: Atom PDF