diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 12:19:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 12:19:51 +0000 |
commit | da7c89bfd0031ea0515168b8549b34c02d1e1570 (patch) | |
tree | 245c91e5421d0ee9b02d7dcb87f9f0f00a8e76f0 | |
parent | 663f0c83b267cccb109bc2f8bccffd911c0dc121 (diff) | |
download | redmine-da7c89bfd0031ea0515168b8549b34c02d1e1570.tar.gz redmine-da7c89bfd0031ea0515168b8549b34c02d1e1570.zip |
Fixes workflow edit with JRuby (#5404).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3709 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/workflow.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/workflow.rb b/app/models/workflow.rb index 423c5a48b..38a3454d0 100644 --- a/app/models/workflow.rb +++ b/app/models/workflow.rb @@ -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'].to_s == role.id.to_s && c['tracker_id'].to_s == tracker.id.to_s} t << [role, (row.nil? ? 0 : row['c'].to_i)] end result << [tracker, t] |