Skip to content

Commit 3e9acc6

Browse files
committed
Fix blank handling
1 parent 427d736 commit 3e9acc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/items_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def set_item
6767

6868
# Only allow a list of trusted parameters through.
6969
def item_params
70-
@item_params ||= jsonapi_deserialize(params, only: Item::EDIT_ATTRS).transform_values { |v| v unless v.nil? }
70+
@item_params ||= jsonapi_deserialize(params, only: Item::EDIT_ATTRS).transform_values { |v| v if v == false || v.present? }
7171
end
7272

7373
def ensure_image_param!

0 commit comments

Comments
 (0)