mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
Merge branch 'dev' for release 5.4.9
This commit is contained in:
commit
ed5157d951
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## next deploy
|
## next deploy
|
||||||
|
|
||||||
|
## v5.4.9 2022 June 29
|
||||||
|
|
||||||
|
- Fix a bug: validator of reservation can't find if slot has reserved by reservable type
|
||||||
|
|
||||||
## v5.4.8 2022 June 29
|
## v5.4.8 2022 June 29
|
||||||
|
|
||||||
- My reservations dashboard
|
- My reservations dashboard
|
||||||
|
@ -50,8 +50,8 @@ class CartItem::Reservation < CartItem::BaseItem
|
|||||||
end
|
end
|
||||||
|
|
||||||
if availability.available_type == 'machines'
|
if availability.available_type == 'machines'
|
||||||
s = Slot.find_by(start_at: slot[:start_at], end_at: slot[:end_at], availability_id: slot[:availability_id], canceled_at: nil)
|
s = Slot.includes(:reservations).where(start_at: slot[:start_at], end_at: slot[:end_at], availability_id: slot[:availability_id], canceled_at: nil, "reservations.reservable": @reservable)
|
||||||
unless s.nil?
|
unless s.empty?
|
||||||
@errors[:slot] = 'slot is reserved'
|
@errors[:slot] = 'slot is reserved'
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fab-manager",
|
"name": "fab-manager",
|
||||||
"version": "5.4.8",
|
"version": "5.4.9",
|
||||||
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
|
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"fablab",
|
"fablab",
|
||||||
|
Loading…
Reference in New Issue
Block a user