Restore single h5p with grade fails in Moodle

Description

In gradebook I get: 50.00 % Error 0–10 Error 30.00 %
after restoring a single h5p activity with grades included.
Grade and percentage has 'Error' for some reason

User state is restored properly.

This happened when merging the restored H5P into an already existing course, where the restored H5P was backed up from. Could be relevant

Restoring a complete course where every H5P had scores worked fine.

Attached is file used for restoration of single H5P

Environment

None

Acceptance Criteria

  • Grade in gradebook must be restored properly when restoring a single H5P activity, and when restoring a complete course including H5P activities

Status

Assignee

Frode Petterson

Reporter

Thomas Marstrander

Labels

Funding

None

Code reviewer

None

Released

None

Time tracking

2h

Fix versions

Sprint

None

Priority

Highest
Configure