Skip to content

Commit

Permalink
Fix bug in initial scheduling of events
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AndrewKvalheim committed Mar 17, 2024
1 parent 796ff79 commit 65e69c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/osem-schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var Schedule = {
room_id: new_parent.attr("room_id"),
start_time: (new_parent.attr("date") + ' ' + new_parent.attr("hour"))
}};
if(event_schedule_id != null){
if(event_schedule_id){
type = 'PUT';
my_url += ('/' + event_schedule_id);
}
Expand Down

0 comments on commit 65e69c4

Please sign in to comment.