aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-04-26 15:09:33 +0200
committerZog2018-04-26 15:09:33 +0200
commit59d2f11fdf8475f20fa5683b70eba85f691166c7 (patch)
treec1b8d4488ed4117cafc2fee0fa9ce970dc6639d4
parente69dfa80737402286adbfe6f29edae2efca36fd8 (diff)
downloadchouette-core-59d2f11fdf8475f20fa5683b70eba85f691166c7.tar.bz2
Refs #6828; Fix PurchaseWindow#bounding_dates6828-fix-purchase-windows-bounding-dates
-rw-r--r--app/models/chouette/purchase_window.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chouette/purchase_window.rb b/app/models/chouette/purchase_window.rb
index bd7cbb41e..8a4a858c4 100644
--- a/app/models/chouette/purchase_window.rb
+++ b/app/models/chouette/purchase_window.rb
@@ -49,7 +49,7 @@ module Chouette
def bounding_dates
[
date_ranges.map(&:first).min,
- date_ranges.map(&:last).max,
+ date_ranges.map(&:max).max,
]
end