-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.6, 3.7.2, 3.8
-
MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
As discovered by jasmink in MDLQA-13834:
Steps to reproduce:
- Import a calendar event via .ics file e.g. from https://moodle.org/calendar/export.php
- Edit the the imported event and change the date so that it is after the duration until date.
- Save changes.
Expected result:
As for a manually added calendar event, if you attempt to do something which doesn't make sense, you see a message 'The date and time you selected for duration until is before the start time of the event. Please correct this before proceeding.'
Actual result:
Error code: codingerror
line 802 of /lib/moodlelib.php: coding_exception thrown
line 2020 of /lib/formslib.php: call to clean_param()
line 2043 of /lib/formslib.php: call to MoodleQuickForm->getCleanedValue()
line 320 of /lib/formslib.php: call to MoodleQuickForm->updateSubmission()
line 224 of /lib/formslib.php: call to moodleform->_process_submission()
line 3591 of /calendar/lib.php: call to moodleform->__construct()
line 7895 of /lib/moodlelib.php: call to calendar_output_fragment_event_form()
line 415 of /lib/external/externallib.php: call to component_callback()
line 244 of /lib/externallib.php: call to core_external::get_fragment()
line 79 of /lib/ajax/service.php: call to external_api::call_external_function()
- Testing discovered
-
MDLQA-13834 CLONE - A user can import a calendar via file
- Passed