Merge branch 'release/3.0' into dev

pull/923/merge
Sebastian Schuster 11 years ago
commit d02210988a
  1. 2
      app/models/permitted_params.rb
  2. 1
      doc/CHANGELOG.md
  3. 8
      spec/models/permitted_params_spec.rb

@ -282,6 +282,7 @@ class PermittedParams < Struct.new(:params, :user)
:hexcode,
:move_to ],
:custom_field => [
:editable,
:field_format,
:is_filter,
:is_for_all,
@ -293,6 +294,7 @@ class PermittedParams < Struct.new(:params, :user)
:possible_values,
:regexp,
:searchable,
:visible,
:translations_attributes => [
:_destroy,
:default_value,

@ -30,6 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
# Changelog
* `#3084` Fix: [Administration - Work Packages] Workflow Status sorting not respected
* `#3312` Fix: [Administration - Custom Fields] "Visible" and "Editable" in user custom field cannot be unchecked
* `#4858` XSS in wp auto-completion
* Added pry-byebug for ruby 2.1

@ -107,6 +107,14 @@ describe PermittedParams do
end
end
describe :custom_field do
it "should permit move_to" do
params = ActionController::Parameters.new(:custom_field => { "editable" => "0", "visible" => "0", 'filtered' => 42 } )
PermittedParams.new(params, user).custom_field.should == { "editable" => "0", "visible" => "0" }
end
end
describe :planning_element_type do
it "should permit move_to" do
hash = { "name" => "blubs" }

Loading…
Cancel
Save