diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-10 17:38:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-10 17:38:17 +0000 |
commit | 83bcc1f043511d85414ca3cafc1e10dc84b9da24 (patch) | |
tree | ad4f5fb681005732796c43266467c2e59228db79 /app/helpers/settings_helper.rb | |
parent | b0013d9f68a0ce4347f568b7f8809ea8ef9f1d8b (diff) | |
download | redmine-83bcc1f043511d85414ca3cafc1e10dc84b9da24.tar.gz redmine-83bcc1f043511d85414ca3cafc1e10dc84b9da24.zip |
Adds a setting to allow subtasks to belong to other projects (#5487).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10587 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/settings_helper.rb')
-rw-r--r-- | app/helpers/settings_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index dd20f24c6..c1fa8ea64 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -91,4 +91,16 @@ module SettingsHelper l_or_humanize(notifiable.name, :prefix => 'label_').html_safe, :class => notifiable.parent.present? ? "parent" : '').html_safe end + + def cross_project_subtasks_options + options = [ + [:label_disabled, ''], + [:label_cross_project_system, 'system'], + [:label_cross_project_tree, 'tree'], + [:label_cross_project_hierarchy, 'hierarchy'], + [:label_cross_project_descendants, 'descendants'] + ] + + options.map {|label, value| [l(label), value.to_s]} + end end |