Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.11.7, 4.0.1
Description
Good day team.
This bug was very hard to chase down, but it has been confirmed in several systems, in versions 3.10.6 and 3.11.7.
Summary of the bug
When adding multiple LTI activities at once (in one batch, so to speak), the operation silently fails, and none of the LTI activities are added.
There is a major caveat though. This bug only occurs when the Global search feature is enabled (it can be found by going to 'Site administration -> Advanced features').
Steps to reproduce
- Go to a Moodle site with a configured LTI integration. The LTI tool should be configured to appear in the Activity chooser.
- Make sure that 'Global search' is enabled in 'Site administration -> Advanced features'.
- Create a course.
- Turn editing mode on in the course.
- Add an activity, choose the LTI tool.
- Click on 'Select content'.
- In the LTI tool interface, select 2 or more activities and add them.
- Follow the instructions specific to the LTI tool to add the activities and then click on 'Save and return to course'.
Observed behavior
There are no activities added to the course.
Expected behavior
The activities from the LTI tool should be added, as many as you selected in step 7.
Video showcase
The following 56 seconds video shows the steps to reproduce and the observed behavior:
Screen Recording 2022-06-02 at 5.10.51 PM.mov
For devs
The great advantage of this problem, is that it can be replicated in a local development environment. For that, create two Moodle servers: a regular server, and an LTI tool. Follow the instructions in https://docs.moodle.org/400/en/Publish_as_LTI_tool to configure the two servers to communicate with each other. Two sites running on localhost is fine.