diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-17 18:18:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-17 18:18:06 +0000 |
commit | c90bf645f51383ffb7bf2e3427b3e4c4672580f3 (patch) | |
tree | bd00abdec57cf27c334eea3e61539cbd11680441 /app/views/enumerations | |
parent | d6789593597694e78c4b2c5f40fe63cef3c48002 (diff) | |
download | redmine-c90bf645f51383ffb7bf2e3427b3e4c4672580f3.tar.gz redmine-c90bf645f51383ffb7bf2e3427b3e4c4672580f3.zip |
Fixed that submitting the form without selecting a value may raise raises an error with SQLServer (#13783).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11854 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/enumerations')
-rw-r--r-- | app/views/enumerations/destroy.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erb index 3b47b40b2..b469d4f9b 100644 --- a/app/views/enumerations/destroy.html.erb +++ b/app/views/enumerations/destroy.html.erb @@ -4,7 +4,7 @@ <div class="box"> <p><strong><%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p> <p><label for='reassign_to_id'><%= l(:text_enumeration_category_reassign_to) %></label> -<%= select_tag 'reassign_to_id', (content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---") + options_from_collection_for_select(@enumerations, 'id', 'name')) %></p> +<%= select_tag 'reassign_to_id', (content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + options_from_collection_for_select(@enumerations, 'id', 'name')) %></p> </div> <%= submit_tag l(:button_apply) %> |