summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-09 10:53:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-09 10:53:17 +0000
commit8d4e528f22239c4a4c4f01f491a46958724224e3 (patch)
treef820c0c7fb2611d4e8cdea622025f6502a843812 /app
parent898a4164a052e1f5d4eaf74398850c168ecd4c96 (diff)
downloadredmine-8d4e528f22239c4a4c4f01f491a46958724224e3.tar.gz
redmine-8d4e528f22239c4a4c4f01f491a46958724224e3.zip
Force rendering of activity view if activity items count changed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9787 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/activities_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
index aba96d764..ef25a3bda 100644
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -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)}