Skip to content

Fix error when fast-publishing matching type questions

Grigor Malo requested to merge matching-question-fix into master

Partially fixes issue #206 (closed)

Changes:

  • add a additional variable to trigger editor rerender when isPublished changes only when in test mode (so when facultyView is true)

This fixes the problem when publishing a matching type question after having added additional options. This does not fix the error we get when deleting an option that has already been set as an answer for one of the matching dropdowns; this can only be fixed in wax (should do something like deleting the selected option from the dropdown if the option is deleted in the options' list below)

@vignesh03 please test rigorously all scenarios of submitting, publishing, republishing, and navigating to the next/previous question, because the change may affect the state of the editor. I didn't manage to find any bugs, but make sure there aren't any.

Merge request reports