diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-04 07:23:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-04 07:23:14 +0000 |
commit | 15d5c331ebc15caee6d8acf89d81b506102c8fa4 (patch) | |
tree | 3cf842a10d3b7f580f23fbd2a1b6f3357271f3b9 /app/helpers | |
parent | 1232f0670e2002d010d29bb804fa769783314065 (diff) | |
download | redmine-15d5c331ebc15caee6d8acf89d81b506102c8fa4.tar.gz redmine-15d5c331ebc15caee6d8acf89d81b506102c8fa4.zip |
Let the new time_entry form be submitted without project (#17954).
git-svn-id: http://svn.redmine.org/redmine/trunk@13422 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22981cf14..e9cbf6dd4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -349,7 +349,10 @@ module ApplicationHelper end def project_tree_options_for_select(projects, options = {}) - s = '' + s = ''.html_safe + if options[:include_blank] + s << content_tag('option', ' '.html_safe, :value => '') + end project_tree(projects) do |project, level| name_prefix = (level > 0 ? ' ' * 2 * level + '» ' : '').html_safe tag_options = {:value => project.id} |