Commit b736f61c by ivan Lan

Add info_value to the :snapshot_params in customer order controller

parent 5ec43b84
...@@ -150,7 +150,7 @@ module Shotengai ...@@ -150,7 +150,7 @@ module Shotengai
# end # end
def resource_params def resource_params
params.require(resource_key).permit! params.require(resource_key)
end end
end end
end end
......
...@@ -48,9 +48,10 @@ module Shotengai ...@@ -48,9 +48,10 @@ module Shotengai
def snapshot_params def snapshot_params
remark_value = params.fetch(:snapshot).fetch(:remark_input, nil)&.permit! remark_value = params.fetch(:snapshot).fetch(:remark_input, nil)&.permit!
info_value = params.fetch(:snapshot).fetch(:info_input, nil)&.permit!
params.fetch(:snapshot).permit( params.fetch(:snapshot).permit(
:shotengai_series_id, :count, :shotengai_series_id, :count,
).merge(remark_value: remark_value) ).merge(remark_value: remark_value, info_value: info_value)
end end
def edit_only_unpaid def edit_only_unpaid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment