diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-05 12:34:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-05 12:34:20 +0000 |
commit | 59ddbf8c09a730d042806c6b52db32e392a78c95 (patch) | |
tree | 2aabf2f5c0712140966ce7d67f3bb81cd22eaf07 /lib/redmine | |
parent | 601148c5b11dd53a834e4dc738d33668970f9193 (diff) | |
download | redmine-59ddbf8c09a730d042806c6b52db32e392a78c95.tar.gz redmine-59ddbf8c09a730d042806c6b52db32e392a78c95.zip |
Use JSON so we don't have to parse data-rels manually (#3436).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11119 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 5bf0a1e98..3238de8cf 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -749,11 +749,7 @@ module Redmine :class => "#{options[:css]} task_todo", :id => html_id} if options[:issue] - rels_hash = {} - issue_relations(options[:issue]).each do |k, v| - rels_hash[k] = v.join(',') - end - content_opt[:data] = {"rels" => rels_hash} + content_opt[:data] = {"rels" => issue_relations(options[:issue]).to_json} end output << view.content_tag(:div, ' '.html_safe, content_opt) if coords[:bar_late_end] |