-
Bug
-
Resolution: Fixed
-
Critical
-
3.3, 3.4, 3.4.4, 3.5.1
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MDL-58768-master-2 -
For details see: MDL-58736
tl;dr the way we pull events out of the database and resolve overrides is not consistent with the way the API was designed. We expect a user to be passed around, but the function that actually retrieves the events from the table has a dependency on the logged in user.
It never manifests itself as a bug anywhere in core as far as I can tell, since all of the functionality we have implemented is for the current logged in user, but it can be reproduced with the attached test script after following these steps:
- Create a course and enrol a user in it (take note of the ID)
- Create an assignment in the course
- Edit the attached test script, setting the $userid variable to the ID from step 1
- Place the attached test script in your moodle document root and run it from your browser
- You will not see any events returned, even though you should
- Log in to moodle as the user from step 1
- Refresh the test script
- You will see the events
This came about because we tried to resolve overrides using SQL (see calendar/classes/local/event/strategies/raw_event_retrieval_strategy, when really it makes a load more sense to pull all the relevant records out of the database and resolve overrides with PHP.
- duplicates
-
MDL-60213 Calendar export empty without a valid session
- Closed
-
MDL-60169 no assignments in calendar export
- Closed
-
MDL-61426 Calendar export does not include group events
- Closed
- has a non-specific relationship to
-
MDL-63146 Update mod_quiz_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63117 Update mod_book_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63134 Update mod_chat_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63135 Update mod_choice_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63136 Update mod_data_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63137 Update mod_feedback_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63138 Update mod_folder_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63139 Update mod_forum_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63140 Update mod_glossary_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63141 Update mod_imscp_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63142 Update mod_label_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63143 Update mod_lesson_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63144 Update mod_lti_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63145 Update mod_page_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63147 Update mod_resource_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63148 Update mod_scorm_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63149 Update mod_survey_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63150 Update mod_url_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63151 Update mod_wiki_core_calendar_provide_event_action callback to accept $userid
- Closed
-
MDL-63152 Update mod_workshop_core_calendar_provide_event_action callback to accept $userid
- Closed
- will help resolve
-
MDL-60128 Calendar export via URL does not export group and user events
- Closed
-
CONTRIB-7160 Calendar export not working for Scheduler events
- Closed
-
MDL-41823 Events Available for group members only not exported to Outlook
- Closed
-
MDL-60340 Decouple action events APIs from the logged in user
- Closed