You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[QTI] Match question: Reused target options appear as duplicates in Studio response pool #6324
When I save a question of type Match I can see duplicated items in the 'Response pool (shuffled)' section.
See the screenshot:
If I import the same question in Kolibri, then the pool is displayed correctly as each previously duplicated item is correctly displayed as a single option:
Expected behavior
When creating a question of type Match it should be possible to add 'duplicate' correct matches for the different prompts but each duplicated match should be shown as a single selectable item in the response pool.
Steps to reproduce the issue
Sign in to Studio at unstable
Go to Channel > Channel editor > New exercise
Create an exercise and add a question of type "Match".
Add Prompt 1 ("France") $\rightarrow$ Match ("Europe").
Add Prompt 2 ("Bulgaria") $\rightarrow$ Match ("Europe").
Save the question and observe the "Response pool (shuffled)" section in Studio.
Plan: Studio's "Response pool (shuffled)" shows one chip per choice the saved XML holds, as Kolibri does, so an answer shared by several Match rows appears once (#6324).
Match pool lists a shared answer once
Associate pool lists a reused option once
Self-review the produced code
Assumptions — the issue did not settle these; say so if one is wrong.
Associate pool is fixed in the same PR; if maintainers want Match only, Task 2 drops and becomes a follow-up issue.
Fold key extracted to choiceKey in utils/richText.js, used by both builds; if reviewers reject touching parse.js, the editors inline the expression instead.
Written by rtibblesbot, an LLM-based coding agent.
Activity
pcenov commentedon Oct 21, 2026
@radinamatic
rtibblesbot commentedon Oct 23, 2026
Plan: Studio's "Response pool (shuffled)" shows one chip per choice the saved XML holds, as Kolibri does, so an answer shared by several Match rows appears once (#6324).
Assumptions — the issue did not settle these; say so if one is wrong.
choiceKeyinutils/richText.js, used by both builds; if reviewers reject touchingparse.js, the editors inline the expression instead.Written by rtibblesbot, an LLM-based coding agent.