You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error like below appears in JS console on option save:
ERROR: Calendar entry for option date could not be created.[
{
"error": false,
"data": {
"submitted": true,
"data": "{\"scrollpos\":0,\"id\":142000,\"optionid\":0,\"cmid\":440000,\"bookingid\":141000,\"json\":\"{}\",\"returnurl\":\"http:\\\/\\\/127.0.0.1\\\/mod\\\/booking\\\/view.php?id=440000\",\"text\":\"Option template\",\"identifier\":\"20e9c2d6\",\"titleprefix\":\"\",\"description\":{\"text\":\"\",\"format\":\"1\"},\"invisible\":\"0\",\"annotation\":{\"text\":\"\",\"format\":\"1\"},\"institution\":\"\",\"bookingoptionimage\":740122328,\"maxanswers\":0,\"maxoverbooking\":0,\"minanswers\":0,\"pollurl\":\"\",\"pollurlteachers\":\"\",\"chooseorcreatecourse\":\"1\",\"courseid\":\"434000\",\"coursetemplateid\":\"\",\"enrolmentstatus\":2,\"selflearningcourseactive\":0,\"selflearningcourse\":0,\"duration\":0,\"mform_isexpanded_id_entitiesrelation_bgugBjO7d8qtp6y\":0,\"local_entities_entityid_0\":\"0\",\"local_entities_entityarea_0\":\"optiondate\",\"datescounter\":\"0\",\"optiondateid_1\":\"0\",\"coursestarttime_1\":2536171200,\"courseendtime_1\":2536261200,\"daystonotify_1\":\"0\",\"local_entities_entityid_1\":\"0\",\"local_entities_entityarea_1\":\"optiondate\",\"customfieldid_1_1\":\"0\",\"customfieldname_1_1\":[\"\"],\"customfieldvalue_1_1\":\"\",\"deletecustomfield_1_1\":\"0\",\"customfieldid_1_2\":\"0\",\"customfieldname_1_2\":[\"\"],\"customfieldvalue_1_2\":\"\",\"deletecustomfield_1_2\":\"0\",\"customfieldid_1_3\":\"0\",\"customfieldname_1_3\":[\"\"],\"customfieldvalue_1_3\":\"\",\"deletecustomfield_1_3\":\"0\",\"datesmarker\":0,\"coursestarttime\":1734032340,\"addtocalendar\":\"1\",\"teachersforoption\":[\"466000\"],\"responsiblecontact\":\"\",\"useprice\":\"0\",\"pricegroup_64656661756c74\":{\"bookingprice_64656661756c74\":70},\"pricegroup_7370656369616c\":{\"bookingprice_7370656369616c\":80},\"bo_cond_allowedtobookininstance_restrict\":\"0\",\"bo_cond_allowedtobookininstance_capabilitynotneeded\":0,\"bo_cond_allowedtobookininstance_overridecondition\":[],\"restrictanswerperiodopening\":0,\"bookingopeningtime\":1734032340,\"restrictanswerperiodclosing\":0,\"bookingclosingtime\":1734032340,\"bo_cond_booking_time_sqlfiltercheck\":\"0\",\"bo_cond_customform_restrict\":\"0\",\"bo_cond_customform_notempty_1_1\":0,\"bo_cond_customform_notempty_1_2\":0,\"bo_cond_customform_notempty_1_3\":0,\"bo_cond_customform_notempty_1_4\":0,\"bo_cond_customform_notempty_1_5\":0,\"bo_cond_customform_notempty_1_6\":0,\"bo_cond_customform_notempty_1_7\":0,\"bo_cond_customform_notempty_1_8\":0,\"bo_cond_customform_notempty_1_9\":0,\"bo_cond_customform_notempty_1_10\":0,\"bo_cond_customform_notempty_1_11\":0,\"bo_cond_customform_notempty_1_12\":0,\"bo_cond_customform_notempty_1_13\":0,\"bo_cond_customform_notempty_1_14\":0,\"bo_cond_customform_notempty_1_15\":0,\"bo_cond_customform_notempty_1_16\":0,\"bo_cond_customform_notempty_1_17\":0,\"bo_cond_customform_notempty_1_18\":0,\"bo_cond_customform_notempty_1_19\":0,\"bo_cond_customform_notempty_1_20\":0,\"bo_cond_customform_deleteinfoscheckboxadmin\":0,\"bo_cond_enrolledincohorts_restrict\":\"0\",\"bo_cond_enrolledincohorts_cohortids\":[],\"bo_cond_enrolledincohorts_cohortids_operator\":\"OR\",\"bo_cond_enrolledincohorts_sqlfiltercheck\":0,\"bo_cond_enrolledincohorts_overrideconditioncheckbox\":0,\"bo_cond_enrolledincohorts_overridecondition\":[],\"bo_cond_enrolledincourse_restrict\":\"0\",\"bo_cond_enrolledincourse_courseids\":[],\"bo_cond_enrolledincourse_courseids_operator\":\"AND\",\"bo_cond_enrolledincourse_overridecondition\":[],\"bo_cond_nooverlapping_restrict\":\"0\",\"bo_cond_previouslybooked_restrict\":\"0\",\"bo_cond_previouslybooked_overridecondition\":[],\"bo_cond_selectusers_restrict\":\"0\",\"bo_cond_selectusers_userids\":[],\"bo_cond_selectusers_overridecondition\":[],\"bo_cond_userprofilefield_1_default_restrict\":\"0\",\"bo_cond_userprofilefield_overridecondition\":[],\"disablebookingusers\":0,\"disablecancel\":0,\"canceluntilcheckbox\":\"0\",\"canceluntil\":1734032340,\"waitforconfirmation\":\"0\",\"myfilemanageroption\":229214401,\"notificationtext\":{\"text\":\"\",\"format\":\"1\"},\"removeafterminutes\":0,\"howmanyusers\":0,\"beforebookedtext\":{\"text\":\"\",\"format\":\"1\"},\"beforecompletedtext\":{\"text\":\"\",\"format\":\"1\"},\"aftercompletedtext\":{\"text\":\"\",\"format\":\"1\"},\"addastemplate\":\"1\",\"aftersubmitaction\":\"submitandgoback\",\"mform_isexpanded_id_datesheader_ttinFeHjwtHljrH\":0,\"availability\":\"[]\",\"sqlfilter\":0}"
}
}
]
Submittted data (in case of savin option as a global template)
Describe the bug
Method to create a calendar event for tacher incorrectly handle cteation of option template or duplicate of option
Versions uses
Moodle version: all
Boooking version: https://github.com/Wunderbyte-GmbH/moodle-mod_booking/compare/dev_bernhard
specifically it has to be caused by this commit
ed788b0
Error like below appears in JS console on option save:
Submittted data (in case of savin option as a global template)
The text was updated successfully, but these errors were encountered: