summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-10 03:09:11 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-10 03:09:11 +0000
commitabf3ee4999050bd24ba75a53805bc7e7ac80ed0d (patch)
treea904703286e13e0804683f0d4df04c1b98eccbd3 /lib
parentbdb3937e0f4c8faceb463e23cb28676930ddbd9e (diff)
downloadredmine-abf3ee4999050bd24ba75a53805bc7e7ac80ed0d.tar.gz
redmine-abf3ee4999050bd24ba75a53805bc7e7ac80ed0d.zip
Add project names to the Versions in the Gantt export. #5904
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4073 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 33a4e1c2c..7c694022a 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -399,13 +399,13 @@ module Redmine
options[:image].fill('black')
options[:image].stroke('transparent')
options[:image].stroke_width(1)
- options[:image].text(options[:indent], options[:top] + 2, version.name)
+ options[:image].text(options[:indent], options[:top] + 2, version.to_s_with_project)
when :pdf
options[:pdf].SetY(options[:top])
options[:pdf].SetX(15)
char_limit = PDF::MaxCharactorsForSubject - options[:indent]
- options[:pdf].Cell(options[:subject_width]-15, 5, (" " * options[:indent]) +"#{version.name}".sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
+ options[:pdf].Cell(options[:subject_width]-15, 5, (" " * options[:indent]) +"#{version.to_s_with_project}".sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
options[:pdf].SetY(options[:top])
options[:pdf].SetX(options[:subject_width])