]> source.dussan.org Git - redmine.git/commitdiff
Allow existing single value custom fields to be changed to multiselect.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jan 2012 21:10:18 +0000 (21:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jan 2012 21:10:18 +0000 (21:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8723 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/custom_fields/_form.html.erb

index d8efca953a4e1c7e896d9dc683d0e5e5a9868657..d09653b04a4e9e3633fcc46a64a864263630a9e1 100644 (file)
@@ -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>