Skip to content

Commit

Permalink
Fix option_values_hash form field name name
Browse files Browse the repository at this point in the history
In Rack 3 the wrongly formatted `option_values_hash` stopped working.
It was an accident that this ever worked in Rack 1 and 2

See rack/rack#2128
  • Loading branch information
tvdeyen committed Apr 17, 2024
1 parent b6fab9e commit 5fad5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/prototypes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ul class="option-type-values">
<% ot.option_values.each do |ov| %>
<li>
<%= check_box_tag "product[option_values_hash[#{ot.id}]][]", ov.id, params[:product] && (params[:product][:option_values_hash] || {}).values.flatten.include?(ov.id.to_s), :id => "option_value_#{ov.id}", :class => "option-value" %>
<%= check_box_tag "product[option_values_hash][#{ot.id}][]", ov.id, params[:product] && (params[:product][:option_values_hash] || {}).values.flatten.include?(ov.id.to_s), :id => "option_value_#{ov.id}", :class => "option-value" %>
<%= label_tag "option_value_#{ov.id}", ov.presentation %>
</li>
<% end %>
Expand Down

0 comments on commit 5fad5af

Please sign in to comment.