ucfopen/Materia-Server-Client-Assets

Imported questions should strip all question/answer IDs.

FrenjaminBanklin opened this issue · 0 comments

Refer to ucfopen/Materia#1188.

Question and answer IDs - though especially question ids - need to be unset on any imported questions to prevent the possibility of collisions within the same widget.

Example: Create a widget, import a question, then import the same question again. Now two copies of the same question exist in the widget, both with the same ID. At the very least this causes issues in (most) widget score modules.

Setting IDs to the default/null values will allow the backend to correctly set them uniquely and prevent collisions.