Skip to content

Commit 509117e

Browse files
committed
Fix default location PR
1 parent 49c9308 commit 509117e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/donations/_donation_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="col-xs-8 col-md-6 col-lg-3">
4040
<%= f.association :product_drive_participant,
4141
collection: @product_drive_participants,
42-
selected: default_location(@donation),
42+
selected: donation_form.product_drive_participant_id,
4343
include_blank: true,
4444
label_method: lambda { |x| "#{x.try(:business_name) }" },
4545
label: "Product Drive Participant",
@@ -67,7 +67,7 @@
6767
collection: @storage_locations,
6868
label: "Storage Location",
6969
error: "Where is it being stored?",
70-
selected: donation_form.storage_location&.id || current_organization.intake_location,
70+
selected: default_location(@donation),
7171
include_blank: true,
7272
wrapper: :input_group %>
7373
</div>

0 commit comments

Comments
 (0)