]> source.dussan.org Git - redmine.git/commitdiff
Takes more parameters into account to determine activity freshness (#7188).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Dec 2010 19:37:42 +0000 (19:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Dec 2010 19:37:42 +0000 (19:37 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4579 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/activities_controller.rb

index ae6a6736966cddf9c6b93278b907eb66dc0a2604..d6292ea9a62ae6aad822373283cd7b29b558e0ba 100644 (file)
@@ -23,7 +23,7 @@ class ActivitiesController < ApplicationController
 
     events = @activity.events(@date_from, @date_to)
     
-    if events.empty? || stale?(:etag => [events.first, User.current])
+    if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, events.first, User.current, current_language])
       respond_to do |format|
         format.html { 
           @events_by_day = events.group_by(&:event_date)