File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" ,
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 : donation_form . storage_location &.id || default_location ( @donation ) ,
7171 include_blank : true ,
7272 wrapper : :input_group %>
7373 </ div >
Original file line number Diff line number Diff line change 268268 expect ( response . body ) . to include ( "<li class=\" breadcrumb-item\" >\n <a href=\" #\" >Editing #{ original_source } " )
269269 expect ( response . body ) . to include ( "<option selected=\" selected\" value=\" #{ edited_source } \" >#{ edited_source } </option>" )
270270 expect ( response . body ) . to include ( "<option selected=\" selected\" value=\" #{ edited_source_drive . id } \" >#{ edited_source_drive_name } </option>" )
271- expect ( response . body ) . to include ( "<option value=\" #{ edited_source_drive_participant . id } \" >#{ edited_source_drive_participant_business_name } </option>" )
271+ expect ( response . body ) . to include ( "<option selected= \" selected \" value=\" #{ edited_source_drive_participant . id } \" >#{ edited_source_drive_participant_business_name } </option>" )
272272 expect ( response . body ) . to include ( "<option selected=\" selected\" value=\" #{ edited_storage_location . id } \" >#{ edited_storage_location_name } </option>" )
273273 expect ( response . body ) . to include ( edited_comment )
274274 expect ( response . body ) . to include ( "value=\" #{ edited_money } \" type=\" text\" name=\" donation[money_raised_in_dollars]" )
You can’t perform that action at this time.
0 commit comments