-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.12, 3.10.9, 3.11.5, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
Problems addressed in the issue
Issue
When restoring LTI activitiy from IMS-CC grade item for is not populated at all as opposed to what happens when creating new LTI activity from Moodle.
Solution
Modify restore code and add missing piece to populate grade item during import. Wrap the code in the configuration setting 'mod_lti/gradeitem'.
Steps to reproduce:
Create new empty course
Create manually new external tool activity:
Settings:
Title: Manual external tool
secure tool url: https://saltire.lti.app/tool
consumer key: test
secret: secret
Save activity
Go to the grader report in course and observe existence of grade item 'Manual external tool'
Export course in IMS CC 1.1 format
Restore common cartridge in new course
Go to the grader report in newly restored course and observe that there is no grade item for the external tool activity.