]> source.dussan.org Git - redmine.git/commitdiff
Force rendering of activity view if activity items count changed.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jun 2012 10:53:17 +0000 (10:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jun 2012 10:53:17 +0000 (10:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9787 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/activities_controller.rb

index aba96d7649aff1fb18bef71f9ff484912656954d..ef25a3bda52d5d6222efb06f7bc0f3a33ddc8003 100644 (file)
@@ -40,7 +40,7 @@ class ActivitiesController < ApplicationController
 
     events = @activity.events(@date_from, @date_to)
 
-    if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, events.first, User.current, current_language])
+    if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, events.first, events.size, User.current, current_language])
       respond_to do |format|
         format.html {
           @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)}