summaryrefslogtreecommitdiffstats
path: root/app
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 /app
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 'app')
-rw-r--r--app/models/version.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/version.rb b/app/models/version.rb
index c3969fe87..95e6ad5f6 100644
--- a/app/models/version.rb
+++ b/app/models/version.rb
@@ -135,6 +135,10 @@ class Version < ActiveRecord::Base
end
def to_s; name end
+
+ def to_s_with_project
+ "#{project} - #{name}"
+ end
# Versions are sorted by effective_date and "Project Name - Version name"
# Those with no effective_date are at the end, sorted by "Project Name - Version name"