Replacing an existing LTI link (external activity) doesn't create all expected links

Replacing an existing LTI link (external activity) doesn't create all expected links

Aitor Cuesta -
Vastausten määrä: 1

Hi,

Working in an LTI integration with Moodle I've seen some unexpected behaviour.

I have configured an LTI integration with my tool. When I follow these steps:

  1. Add a new external tool activity in a course
  2. Click on select content
  3. Select multiple items to import into Moodle
  4. Import them

Everything goes fine. I get a Moodle page that says "The following items will be added to your course", and all the items are listed. Then I click on the "Save and return to course" button and all the items are imported and I have created a new entry for every item.

Then I go to one of the newly imported items and do these steps:

  1. Click on edit settings
  2. Click on select content
  3. Select multiple items to import into Moodle
  4. Import them

Despite I get the same page saying "The following items will be added to your course" with the correct items. After clicking the "Save and return to course" button I only get one of those items. I mean, the original item (the one I'm editing) is replaced with one of the newly synced, but no new links are created.

I send you a screenshot where I'm replacing a link named "Item 2". I'm trying to add "Item 3" and "Item 4" and only "Item 4" get added:



Thanks in advance

Arviointien keskiarvo: -
Vastaus Aitor Cuesta

Re: Replacing an existing LTI link (external activity) doesn't create all expected links

Jake Dallimore -
Kuva: Core developers Kuva: Moodle HQ Kuva: Particularly helpful Moodlers Kuva: Peer reviewers Kuva: Plugin developers Kuva: Testers
Thanks for the report, Aitor. Well spotted.

I see the same behaviour and agree it is confusing. Essentially, to perform this process (picking multiple items for link creation), you always need to start by adding a new External Tool or by picking the pre-configured tool from the activity chooser, rather than editing an existing resource link. This was likely something that was overlooked when we landed this feature.

MDL-66901 aims to resolve some of these problems with workflow, but it's not actively being worked on at present.

I've created MDL-74593 to deal with the issue you reported.

Thanks!
Jake

Arviointien keskiarvo:Useful (1)