summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 14:01:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 14:01:02 +0000
commitd79c20c4f28f9b43f1bc105cb590d244c1b322f2 (patch)
treedf1c65f6101c440fdfe12cf4a142b6ef22eab65d /app/views/projects
parent889bf388be0325d4c38b984a4eaa23db6102938a (diff)
downloadredmine-d79c20c4f28f9b43f1bc105cb590d244c1b322f2.tar.gz
redmine-d79c20c4f28f9b43f1bc105cb590d244c1b322f2.zip
Fixed: custom field selection is not saved when unchecking them all on project settings
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1083 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_form.rhtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/_form.rhtml b/app/views/projects/_form.rhtml
index e29777af4..e63c929cc 100644
--- a/app/views/projects/_form.rhtml
+++ b/app/views/projects/_form.rhtml
@@ -35,10 +35,11 @@
<fieldset class="box"><legend><%=l(:label_custom_field_plural)%></legend>
<% for custom_field in @custom_fields %>
<label class="floating">
- <%= check_box_tag "custom_field_ids[]", custom_field.id, ((@project.custom_fields.include? custom_field) or custom_field.is_for_all?), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
+ <%= check_box_tag 'project[custom_field_ids][]', custom_field.id, ((@project.custom_fields.include? custom_field) or custom_field.is_for_all?), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
<%= custom_field.name %>
</label>
<% end %>
+<%= hidden_field_tag 'project[custom_field_ids][]', '' %>
</fieldset>
<% end %>
<!--[eoform:project]-->