Skip to content

Commit 65e69c4

Browse files
Fix bug in initial scheduling of events
Resolves inability to schedule a nonscheduled event: ActionController::RoutingError: No route matches [PUT] "/admin/conferences/…/event_schedules" `event_schedule_id` represents the absence of a schedule as either an empty string or undefined, not as null.
1 parent 796ff79 commit 65e69c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/osem-schedule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var Schedule = {
4646
room_id: new_parent.attr("room_id"),
4747
start_time: (new_parent.attr("date") + ' ' + new_parent.attr("hour"))
4848
}};
49-
if(event_schedule_id != null){
49+
if(event_schedule_id){
5050
type = 'PUT';
5151
my_url += ('/' + event_schedule_id);
5252
}

0 commit comments

Comments
 (0)