Restore refuses stored values, and the hidden icon class is lost
Problem/motivation
Found by the release check on a copy of a 1.0.0-beta1 site, updated to the code of 1.0.0-beta2:
- The export wrote 2093 assessments. After the uninstall and reinstall, the import refused the whole file because 3 stored items have a human review and no editorial responsibility. An export of the module could not be restored.
- When the labelled copy of a video is served, the overlay wrapper has its base class twice and lacks the class that hides the icon, so the CSS rule for the player width does not apply.
Proposed resolution
The restore checks what the storage needs and puts stored values back as they were, without the editorial checks of the edit form. The hidden icon class is added to the wrapper whatever form its attributes take.
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.