プロジェクト

全般

プロフィール

Vote #69604

完了

List of users for adding to a group may be empty if 100 first users have been added

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Groups_27
対象バージョン:
開始日:
2011/03/31
期日:
進捗率:

0%

予定工数:
category_id:
27
version_id:
27
issue_org_id:
8029
author_id:
13730
assigned_to_id:
0
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
31
ステータス-->[Closed]

説明

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


journals

--------------------------------------------------------------------------------
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)
--------------------------------------------------------------------------------
Just done in r5284 before I saw your update :-)
--------------------------------------------------------------------------------
User.not_in_group() actually.
--------------------------------------------------------------------------------
Niiiice =)
--------------------------------------------------------------------------------
thanks for fix
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリGroups_27 にセット
  • 対象バージョン1.2.0_27 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0