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