]> source.dussan.org Git - redmine.git/commitdiff
Fixes Workflow.count_by_tracker_and_role.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Sep 2008 13:10:00 +0000 (13:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Sep 2008 13:10:00 +0000 (13:10 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1917 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/workflow.rb

index e254ac48c752bf3f17684b883a96913f225b7925..4168fdea049aded776c28099843a19fd7d149e2b 100644 (file)
@@ -32,7 +32,7 @@ class Workflow < ActiveRecord::Base
     trackers.each do |tracker|
       t = []
       roles.each do |role|
-        row = counts.detect {|c| c['role_id'] == role.id.to_s && c['tracker_id'] = tracker.id.to_s}
+        row = counts.detect {|c| c['role_id'] == role.id.to_s && c['tracker_id'] == tracker.id.to_s}
         t << [role, (row.nil? ? 0 : row['c'].to_i)]
       end
       result << [tracker, t]