summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 11:26:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 11:26:29 +0000
commit2e04614e218e95672a8e064ed3e5a9f223adc4bf (patch)
tree8557b853f4fc241930200bd27701a222b3bae0fc /app/helpers
parent579d687580b20a8c2dffdfc60a2d86bc77be486c (diff)
downloadredmine-2e04614e218e95672a8e064ed3e5a9f223adc4bf.tar.gz
redmine-2e04614e218e95672a8e064ed3e5a9f223adc4bf.zip
Don't prepend project name if the version is not shared.
git-svn-id: http://svn.redmine.org/redmine/trunk@13325 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 135551e81..f344f169b 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -247,7 +247,7 @@ module ApplicationHelper
end
def format_version_name(version)
- if version.project == @project
+ if !version.shared? || version.project == @project
h(version)
else
h("#{version.project} - #{version}")