Feature #20458
Updated by Toshi MARUYAMA about 9 years ago
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: <pre><code class="ruby"> <pre> @scope.each do |event_type| constantized_providers(event_type).each do |provider| e += provider.find_events(event_type, @user, from, to, @options) end end </code></pre> </pre> to <pre><code class="ruby"> <pre> 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 </code></pre> </pre> Sry for don't submit a patch, I'm not on my pc now and I don't have svn instaled.