Availability validation not working? [v5.5] #1449
Description
Reported by BMEC:
Just a heads up that we seem to be really overbooked on projectors today. I don’t know what happened, but all of them are checked out, none are overdue, only one is due back today, and there are 4 people still listed as having a reservation that starts today. None of them have come in yet, but I wanted to let you know in case we get any angry messages, or in case you have any magical solutions.
...
Okay, I know what happened. Reservations is allowing us to create new reservations for dates where we show zero available items. I was able to create a reservation for a projector from today to tomorrow despite the red zeros for January 22-24 on the calendar. If you try to make the reservation from the catalog page, you cannot click “Add to cart” when it shows zero available, but if you go to the equipment model page, it allows you to add the item to the cart and go through and finalize the reservation, even though there are zero available until Monday. I’m adding the Developers to this email because this is definitely a problem. I had my student worker reserve one for herself, and then I changed my “view as” to a normal user and was also able to reserve the projector, so it’s not some special privilege of Admins and Checkout folks.
Confirmed on BMEC PROD, I can add said overbooked item (or any overbooked item) to my cart (through the equipment model page) and no cart validations are triggered, either in the flash or in the cart warnings. No idea what's going on, this is CRITICAL so we should get this fixed ASAP. If necessary we can push a patch for v5.5.3 over the weekend / early next week and bump the rest of this milestone to v5.5.4.
Activity