Commit da7c89bf authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes workflow edit with JRuby (#5404).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3709 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 663f0c83
...@@ -32,7 +32,7 @@ class Workflow < ActiveRecord::Base ...@@ -32,7 +32,7 @@ class Workflow < ActiveRecord::Base
trackers.each do |tracker| trackers.each do |tracker|
t = [] t = []
roles.each do |role| 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'].to_s == role.id.to_s && c['tracker_id'].to_s == tracker.id.to_s}
t << [role, (row.nil? ? 0 : row['c'].to_i)] t << [role, (row.nil? ? 0 : row['c'].to_i)]
end end
result << [tracker, t] result << [tracker, t]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment