small fix for calendar .. removed un passed property
This commit is contained in:
parent
d9c5c98a14
commit
12f4591a49
|
@ -39,7 +39,7 @@ class PHire
|
|||
end
|
||||
|
||||
def self.monthly_event(start_date,end_date,property_id)
|
||||
self.where(:property_id => property_id).any_of(:start_time.gte => start_date, :end_time.gte => start_date).and(:start_time.lte => end_date).asc(:start_time)
|
||||
self.where(:property_id => property_id, :passed => true).any_of(:start_time.gte => start_date, :end_time.gte => start_date).and(:start_time.lte => end_date).asc(:start_time)
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue