summaryrefslogtreecommitdiffstats
path: root/app/helpers/settings_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-10 17:38:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-10 17:38:17 +0000
commit83bcc1f043511d85414ca3cafc1e10dc84b9da24 (patch)
treead4f5fb681005732796c43266467c2e59228db79 /app/helpers/settings_helper.rb
parentb0013d9f68a0ce4347f568b7f8809ea8ef9f1d8b (diff)
downloadredmine-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.rb12
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