From 28ef7b0ae0c16d35498ad59d21a3cbd1bfad3d30 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 16 Feb 2022 10:10:27 +0800 Subject: [PATCH] Fix bug. --- app/models/property.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/property.rb b/app/models/property.rb index 696cc92..a82eaa3 100644 --- a/app/models/property.rb +++ b/app/models/property.rb @@ -361,7 +361,7 @@ class Property end if available recurring_bookings = phires.where(:recurring_end_date.gte => stime, :recurring => true,:id.ne=>phire_id) - bookings = phires.where(:recurring => false,:recurring_end_date => nil) + bookings = phires.where(:recurring => false,:recurring_end_date => nil,:id.ne=>phire_id) case interval when 'week' d_step = 1.week