Edlib icon indicating copy to clipboard operation
Edlib copied to clipboard

CA: Updating H5P content type version in Editor could cause loss of unsaved changes

Open chrieinv opened this issue 9 months ago • 0 comments

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:

  1. Open content in editor that can be updated to a newer version
  2. Select a newer version under "Update content", and confirm the popup to perform the update
  3. When the update is complete, click the "Undo" button
  4. After the update is undone, change the content
  5. Perform the content type update again
  6. The changes from step 4 is lost
  7. Using "Undo" does not restore the lost changes

Expected behaviour: Update should always use the content at the time when the update is performed.

chrieinv avatar Mar 20 '25 09:03 chrieinv