プロジェクト

全般

プロフィール

Vote #76616

未完了

Fetch Many Authors Activities

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Activity view_50
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
50
version_id:
0
issue_org_id:
20458
author_id:
118650
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Hi, I'm developing a follow feature for a customer and i realize that is not possible to fetch activities from many authors.

So i sugest this change:


        @scope.each do |event_type|
          constantized_providers(event_type).each do |provider|
            e += provider.find_events(event_type, @user, from, to, @options)
          end
        end

to


if @options[:author].is_a? Array
  @options[:author].each do |a|
        @scope.each do |event_type|
          constantized_providers(event_type).each do |provider|
            e += provider.find_events(event_type, @user, from, to, @options.merge(author: a))
          end
        end
  end
end

Sry for don't submit a patch, I'm not on my pc now and I don't have svn instaled.


journals

Hi,
Here the patch, i think nothing that work before was broken and add new possibilities.
--------------------------------------------------------------------------------
fixing patch
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリActivity view_50 にセット

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

いいね!0
いいね!0