diff options
| -rw-r--r-- | app/models/chouette/vehicle_journey.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/models/chouette/vehicle_journey.rb b/app/models/chouette/vehicle_journey.rb index 6209993de..9b94f7f0e 100644 --- a/app/models/chouette/vehicle_journey.rb +++ b/app/models/chouette/vehicle_journey.rb @@ -93,7 +93,7 @@ module Chouette      scope :in_purchase_window, ->(range){        purchase_windows = Chouette::PurchaseWindow.overlap_dates(range)        sql = purchase_windows.joins(:vehicle_journeys).select('vehicle_journeys.id').uniq.to_sql -      where("id IN (#{sql})") +      where("vehicle_journeys.id IN (#{sql})")      }      # We need this for the ransack object in the filters | 
