Lessons 'Edit Question' > 'Cancel' duplicating answer options

Description

The Add Content >> Add Content >> Question >> MCQ incorrect answer options appear to be repeated after being posted.

Attachments

1

Activity

Show:

Thomas Kelsey May 31, 2023 at 9:19 PM

Verified in 23.x,

build: 7a50bf39

Followed test plan, no repeating answers

Seta Jackson April 25, 2022 at 8:20 PM

thanks Apologies for not responding - I returned from vacation today. Thank you to you and for your work on this!

Automation for Jira April 19, 2022 at 11:53 PM

A pull request has been created, "SAK-47132: Lessons 'Edit Question' > 'Cancel' duplicating answer options", you can see it at https://github.com/sakaiproject/sakai/pull/10438

Sean Horner April 19, 2022 at 10:46 PM

The javascript method resetMultipleChoiceAnswers in show-page.js corresponds to the Cancel button for the Edit Question dialog. It’s missing a clean-up step that was implemented in Sakai 20 and earlier, prior to UI layout improvements implemented with .

I think I have a fix and hope to make a PR with it soon.

Sean Horner April 19, 2022 at 3:10 PM
Edited

I have confirmed that this bug is active on the nightly server for 23.x and 22.x, in addition to 21.x.

If you save after the second edit, do the new options get created? Or is it just a visual issue on the edit panel?

If you click Update Item during the second edit, the new options appearing in the dialog are then added as new options for the question.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Environment

Nightly 21
Created April 6, 2022 at 3:52 PM
Updated May 31, 2023 at 9:19 PM
Resolved May 24, 2022 at 6:24 PM