diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-14 11:26:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-14 11:26:29 +0000 |
commit | 2e04614e218e95672a8e064ed3e5a9f223adc4bf (patch) | |
tree | 8557b853f4fc241930200bd27701a222b3bae0fc /app/models/version.rb | |
parent | 579d687580b20a8c2dffdfc60a2d86bc77be486c (diff) | |
download | redmine-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/models/version.rb')
-rw-r--r-- | app/models/version.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index b80f0f2d1..76853e4b0 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -226,6 +226,11 @@ class Version < ActiveRecord::Base end end + # Returns true if the version is shared, otherwise false + def shared? + sharing != 'none' + end + private def load_issue_counts |