##// END OF EJS Templates
Use IssueRelation#to_s in PDF export....
Jean-Philippe Lang -
r13182:78cc63e52cba
parent child
Show More
@@ -522,16 +522,14 module Redmine
522 pdf.RDMCell(35+155,5, l(:label_related_issues) + ":", "LTR")
522 pdf.RDMCell(35+155,5, l(:label_related_issues) + ":", "LTR")
523 pdf.ln
523 pdf.ln
524 relations.each do |relation|
524 relations.each do |relation|
525 buf = ""
525 buf = relation.to_s(issue) {|other|
526 buf += "#{l(relation.label_for(issue))} "
526 text = ""
527 if relation.delay && relation.delay != 0
527 if Setting.cross_project_issue_relations?
528 buf += "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)}) "
528 text += "#{relation.other_issue(issue).project} - "
529 end
529 end
530 if Setting.cross_project_issue_relations?
530 text += "#{other.tracker} ##{other.id}: #{other.subject}"
531 buf += "#{relation.other_issue(issue).project} - "
531 text
532 end
532 }
533 buf += "#{relation.other_issue(issue).tracker}" +
534 " # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}"
535 buf = buf.truncate(truncate_length)
533 buf = buf.truncate(truncate_length)
536 pdf.SetFontStyle('', 8)
534 pdf.SetFontStyle('', 8)
537 pdf.RDMCell(35+155-60, 5, buf, border_first)
535 pdf.RDMCell(35+155-60, 5, buf, border_first)
General Comments 0
You need to be logged in to leave comments. Login now