Fix issue with saving empty fields values on filter keyword updates (#33691)
This commit is contained in:
parent
4a9c49ee43
commit
8eee7ae4c3
2 changed files with 9 additions and 2 deletions
|
@ -48,7 +48,7 @@ class FiltersController < ApplicationController
|
|||
end
|
||||
|
||||
def resource_params
|
||||
params.expect(custom_filter: [:title, :expires_in, :filter_action, context: [], keywords_attributes: [:id, :keyword, :whole_word, :_destroy]])
|
||||
params.expect(custom_filter: [:title, :expires_in, :filter_action, context: [], keywords_attributes: [[:id, :keyword, :whole_word, :_destroy]]])
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue