Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Commit b1f0025

Browse files
committed
Merge pull request #1451 from YaleSTC/1449_availability_bug_55
[1449] Fix cart availability validation
2 parents 2109c64 + 86c4d22 commit b1f0025

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* This file will be updated whenever a new release is put into production.
33
* Any problems should be reported via the "report an issue" link in the footer of the application.
44

5+
## v5.5.3 - 2016-01-24
6+
### Fixed
7+
* Resolved an issue where checked-out reservations were not being taken into account when validating availability ([#1449](https://github.com/YaleSTC/reservations/issues/1449)).
8+
59
## v5.5.2 - 2016-01-18
610
### Fixed
711
* Resolved an issue where all AdminMailer e-mails were not being delivered ([#1426](https://github.com/YaleSTC/reservations/issues/1426)).

app/models/reservation_scopes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def self.included(base) # rubocop:disable MethodLength, AbcSize
7373
scope :for_reserver, ->(reserver) { where(reserver_id: reserver) }
7474
scope :reserved_in_date_range, lambda { |start_date, end_date|
7575
where('start_date <= ? and due_date >= ?', end_date, start_date)
76-
.reserved
76+
.active
7777
}
7878
scope :overlaps_with_date, lambda { |date|
7979
where('start_date <= ? and due_date >= ?', date, date)

0 commit comments

Comments
 (0)