diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-20 14:01:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-20 14:01:02 +0000 |
commit | d79c20c4f28f9b43f1bc105cb590d244c1b322f2 (patch) | |
tree | df1c65f6101c440fdfe12cf4a142b6ef22eab65d /app/controllers | |
parent | 889bf388be0325d4c38b984a4eaa23db6102938a (diff) | |
download | redmine-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/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 2342e8074..30e7ef85f 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -113,7 +113,6 @@ class ProjectsController < ApplicationController # Edit @project def edit if request.post? - @project.custom_fields = IssueCustomField.find(params[:custom_field_ids]) if params[:custom_field_ids] if params[:custom_fields] @custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => params["custom_fields"][x.id.to_s]) } @project.custom_values = @custom_values |