From f84688687bcbf1eb9f5384ed1598100a45736078 2012-01-29 21:10:18 From: Jean-Philippe Lang Date: 2012-01-29 21:10:18 Subject: [PATCH] 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 --- diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index d8efca9..d09653b 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() {

<%= f.text_field :name, :required => true %>

<%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :onchange => "toggle_custom_field_format();", :disabled => !@custom_field.new_record? %>

-

<%= f.check_box :multiple, :disabled => !@custom_field.new_record? %>

+

<%= f.check_box :multiple, :disabled => @custom_field.multiple && !@custom_field.new_record? %>

<%= f.text_field :min_length, :size => 5, :no_label => true %> - <%= f.text_field :max_length, :size => 5, :no_label => true %>
(<%=l(:text_min_max_length_info)%>)