Edlib
Edlib copied to clipboard
CA: Updating H5P content type version in Editor could cause loss of unsaved changes
In CA H5P editor it's possible to update the content to use a newer installed version of the H5P content type. Unsaved changes could be lost when performing the update. If the user clicks "Undo" after updating, any unsaved changes done afterwards are lost if performing the update again.
Steps to reproduce the bug:
- Open content in editor that can be updated to a newer version
- Select a newer version under "Update content", and confirm the popup to perform the update
- When the update is complete, click the "Undo" button
- After the update is undone, change the content
- Perform the content type update again
- The changes from step 4 is lost
- Using "Undo" does not restore the lost changes
Expected behaviour: Update should always use the content at the time when the update is performed.