diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-08 12:07:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-08 12:07:00 +0000 |
commit | c3c7d9a4d27b9accac73d55652302f6781371380 (patch) | |
tree | 284fb0eed8f32d47126880249ea5c202874b47fd /app/helpers | |
parent | 01f673be08be68247b72a8954379b3f0c7a9a9d3 (diff) | |
download | redmine-c3c7d9a4d27b9accac73d55652302f6781371380.tar.gz redmine-c3c7d9a4d27b9accac73d55652302f6781371380.zip |
Adds a :copy_issues permission (#18855).
When copy is allowed, target projects are those on which the user has the :add_issues permission.
git-svn-id: http://svn.redmine.org/redmine/trunk@13985 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index db10ed604..24d033a7e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -343,8 +343,11 @@ module ApplicationHelper def project_tree_options_for_select(projects, options = {}) s = ''.html_safe - if options[:include_blank] - s << content_tag('option', ' '.html_safe, :value => '') + if blank_text = options[:include_blank] + if blank_text == true + blank_text = ' '.html_safe + end + s << content_tag('option', blank_text, :value => '') end project_tree(projects) do |project, level| name_prefix = (level > 0 ? ' ' * 2 * level + '» ' : '').html_safe |