diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-29 21:10:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-29 21:10:18 +0000 |
commit | f84688687bcbf1eb9f5384ed1598100a45736078 (patch) | |
tree | ed57a276d8787dd43e373c4fd5f4f83026e38e0d | |
parent | 8d5f932660f96367948fb89210f7a04d3fc90891 (diff) | |
download | redmine-f84688687bcbf1eb9f5384ed1598100a45736078.tar.gz redmine-f84688687bcbf1eb9f5384ed1598100a45736078.zip |
Allow existing single value custom fields to be changed to multiselect.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8723 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/custom_fields/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index d8efca953..d09653b04 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -71,7 +71,7 @@ function toggle_custom_field_format() { <p><%= f.text_field :name, :required => true %></p> <p><%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :onchange => "toggle_custom_field_format();", :disabled => !@custom_field.new_record? %></p> -<p><%= f.check_box :multiple, :disabled => !@custom_field.new_record? %></p> +<p><%= f.check_box :multiple, :disabled => @custom_field.multiple && !@custom_field.new_record? %></p> <p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label> <%= f.text_field :min_length, :size => 5, :no_label => true %> - <%= f.text_field :max_length, :size => 5, :no_label => true %><br />(<%=l(:text_min_max_length_info)%>)</p> |