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:
parent
a2fd7f19ad
commit
947f174e78
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue