diff options
| author | Alban Peignier | 2018-04-26 16:03:45 +0200 |
|---|---|---|
| committer | GitHub | 2018-04-26 16:03:45 +0200 |
| commit | 2260fac9c30d23aadbf9d13c078ef5562c2e505e (patch) | |
| tree | 9abd38fedf3a1a2b513e3a8c4f340925b5969af0 | |
| parent | c06e3d8791e84cee1277fee8bc66cfb6b372724c (diff) | |
| parent | 59d2f11fdf8475f20fa5683b70eba85f691166c7 (diff) | |
| download | chouette-core-2260fac9c30d23aadbf9d13c078ef5562c2e505e.tar.bz2 | |
Merge pull request #534 from af83/6828-fix-purchase-windows-bounding-dates
Fix PurchaseWindow#bounding_dates. Fixes #6828
| -rw-r--r-- | app/models/chouette/purchase_window.rb | 2 |
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 |
