]> source.dussan.org Git - redmine.git/commitdiff
Watched issues count on "My page" is shown for all issues instead of only open ones...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Apr 2016 09:57:37 +0000 (09:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Apr 2016 09:57:37 +0000 (09:57 +0000)
Patch by Karel Pičman and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@15315 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/my_helper.rb

index 504bd0b052f2d99aa166bc79d7ed94e454f74fb0..6a05422346534df7af66a1a70ef91845a04367c7 100644 (file)
@@ -50,7 +50,7 @@ module MyHelper
   end
 
   def issueswatched_items
-    Issue.visible.on_active_project.watched_by(User.current.id).recently_updated.limit(10)
+    Issue.visible.open.on_active_project.watched_by(User.current.id).recently_updated.limit(10)
   end
 
   def news_items