Only process issues that have relations.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11120 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-01-05 12:41:24 +00:00
parent 59ddbf8c09
commit f9325193be
2 changed files with 10 additions and 9 deletions
+4 -1
View File
@@ -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]