summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-05 12:41:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-05 12:41:24 +0000
commitf9325193be7c60f09598614b76bd651f063f7b27 (patch)
tree34aa24f0eb91f9da38f5a5a724e0b29806c4c56b /lib/redmine/helpers
parent59ddbf8c09a730d042806c6b52db32e392a78c95 (diff)
downloadredmine-f9325193be7c60f09598614b76bd651f063f7b27.tar.gz
redmine-f9325193be7c60f09598614b76bd651f063f7b27.zip
Only process issues that have relations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11120 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r--lib/redmine/helpers/gantt.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 3238de8cf..a760a3466 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -749,7 +749,10 @@ module Redmine
:class => "#{options[:css]} task_todo",
:id => html_id}
if options[:issue]
- content_opt[:data] = {"rels" => issue_relations(options[:issue]).to_json}
+ rels = issue_relations(options[:issue])
+ if rels.present?
+ content_opt[:data] = {"rels" => rels.to_json}
+ end
end
output << view.content_tag(:div, '&nbsp;'.html_safe, content_opt)
if coords[:bar_late_end]