mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
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.
This commit is contained in:
parent
f29409945b
commit
514ea1efbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue