Skip to content
Snippets Groups Projects
Commit 36c4bd4f authored by Tyler Lemburg's avatar Tyler Lemburg
Browse files

filter agenda on service space

parent 0e31fca6
Branches
Tags
No related merge requests found
Pipeline #
...@@ -8,8 +8,8 @@ get '/:service_space_url_name/admin/agenda/' do ...@@ -8,8 +8,8 @@ get '/:service_space_url_name/admin/agenda/' do
@breadcrumbs << {:text => 'Agenda'} @breadcrumbs << {:text => 'Agenda'}
date = params[:date].nil? ? Time.now.midnight : Time.parse(params[:date]) date = params[:date].nil? ? Time.now.midnight : Time.parse(params[:date])
reservations = Reservation.includes(:user, :resource, :event).in_day(date).order(:start_time) reservations = Reservation.includes(:user, :resource, :event).where(:service_space_id => @space.id).in_day(date).order(:start_time)
events = Event.includes(:event_type).in_day(date).order(:start_time) events = Event.includes(:event_type).where(:service_space_id => @space.id).in_day(date).order(:start_time)
# get the hours for this day to show # get the hours for this day to show
hours = SpaceHour.where(:service_space_id => @space.id) hours = SpaceHour.where(:service_space_id => @space.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment