Skip to content

Commit

Permalink
[Fixes#92648060] Fixes bug planning Rideshare.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekEdwards committed Apr 16, 2015
1 parent 985ebe2 commit 5a842d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trip_part.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def create_rideshare_itineraries
Rails.logger.info "SKIP_DYNAMIC_RIDESHARE_DURATION is set, skipping it"
end
i = Itinerary.new(itinerary)
service_window = itinerary.service.service_window if itinerary && itinerary.service
service_window = i.service.service_window if i && i.service
i.estimate_duration(base_duration, Oneclick::Application.config.minimum_rideshare_duration, Oneclick::Application.config.rideshare_duration_factor, service_window, trip_time, is_depart)
itins << i
else
Expand Down

0 comments on commit 5a842d1

Please sign in to comment.