]> source.dussan.org Git - redmine.git/commitdiff
Fixed tests broken by r13461.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Oct 2014 21:47:43 +0000 (21:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Oct 2014 21:47:43 +0000 (21:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13466 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 5f8a0af2c0bdc4f1e043ffde9ced913c44c63692..05282faa17107af38d50b292767de48659ae2a47 100644 (file)
@@ -1224,7 +1224,7 @@ class Issue < ActiveRecord::Base
 
     Issue.
       visible(User.current, :project => options[:project], :with_subprojects => options[:with_subprojects]).
-      joins(:status).
+      joins(:status, assoc.name).
       group(:status_id, :is_closed, select_field).
       count.
       map do |columns, total|