From 3183445aea1f8df0e0b6035d1d59e87b424feaab Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Feb 2009 16:55:48 +0000 Subject: [PATCH] Makes the "type" field disabled when updating a custom field (#2744). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2475 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/_form.rhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml index 874c571bf..d26af9420 100644 --- a/app/views/custom_fields/_form.rhtml +++ b/app/views/custom_fields/_form.rhtml @@ -54,7 +54,8 @@ function toggle_custom_field_format() {

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

-

<%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();" %>

+

<%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();", + :disabled => !@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)%>)