0
0
Fork 0

Fix issue with saving empty fields values on filter keyword updates (#33691)

This commit is contained in:
Matt Jankowski 2025-01-23 04:04:12 -05:00 committed by GitHub
parent 4a9c49ee43
commit 8eee7ae4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -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