Extended ScheduledSession objects were not initialized correctly, so un-extending did not work. Fixes bug #1401. Commit ready for merge.

- Legacy-Id: 7732
This commit is contained in:
Robert Sparks 2014-05-12 19:37:44 +00:00
parent a2fd7f19ad
commit 947f174e78
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ function style_empty_slots(){
}
var __debug_load_events = false;
var __debug_load_events = true;
/* this pushes every event into the agendas */
function load_events(){
var slot_id;

View file

@ -308,7 +308,7 @@ function extend_slot(event) {
// need to create new scheduledsession
var new_ss = make_ss({ "session_id" : session.session_id,
"timeslot_id": slot.following_timeslot.timeslot_id,
"extended_from_id" : current_scheduledslot.scheduledsession_id});
"extendedfrom_id" : current_scheduledslot.scheduledsession_id});
// make_ss also adds to slot_status.
new_ss.saveit();