We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c9308 commit 509117eCopy full SHA for 509117e
app/views/donations/_donation_form.html.erb
@@ -39,7 +39,7 @@
39
<div class="col-xs-8 col-md-6 col-lg-3">
40
<%= f.association :product_drive_participant,
41
collection: @product_drive_participants,
42
- selected: default_location(@donation),
+ selected: donation_form.product_drive_participant_id,
43
include_blank: true,
44
label_method: lambda { |x| "#{x.try(:business_name) }" },
45
label: "Product Drive Participant",
@@ -67,7 +67,7 @@
67
collection: @storage_locations,
68
label: "Storage Location",
69
error: "Where is it being stored?",
70
- selected: donation_form.storage_location&.id || current_organization.intake_location,
+ selected: default_location(@donation),
71
72
wrapper: :input_group %>
73
</div>
0 commit comments