##// 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 522 pdf.RDMCell(35+155,5, l(:label_related_issues) + ":", "LTR")
523 523 pdf.ln
524 524 relations.each do |relation|
525 buf = ""
526 buf += "#{l(relation.label_for(issue))} "
527 if relation.delay && relation.delay != 0
528 buf += "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)}) "
529 end
530 if Setting.cross_project_issue_relations?
531 buf += "#{relation.other_issue(issue).project} - "
532 end
533 buf += "#{relation.other_issue(issue).tracker}" +
534 " # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}"
525 buf = relation.to_s(issue) {|other|
526 text = ""
527 if Setting.cross_project_issue_relations?
528 text += "#{relation.other_issue(issue).project} - "
529 end
530 text += "#{other.tracker} ##{other.id}: #{other.subject}"
531 text
532 }
535 533 buf = buf.truncate(truncate_length)
536 534 pdf.SetFontStyle('', 8)
537 535 pdf.RDMCell(35+155-60, 5, buf, border_first)
General Comments 0
You need to be logged in to leave comments. Login now