chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Copy course changes correct answers in Matching questions in quizzes

Open simbulu opened this issue 9 years ago • 4 comments

Expected behavior / Resultado esperado / Résultat attendu

'Copy course' should copy correct results in quizz questions correctly.

Actual behavior / Resultado real / Résultat réel

'Copy course' sets all answers to 'A' in a copy of a 'Matching' question.
The same happens with questions of the type 'Match by dragging'

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire

Verified on 1.10 and 1.11.chamilo.org in the courses Matching and MatchingCopycoures.

Create two courses named MATCHING and MATCHINGCOPYCOURSE Enter MATCHING Add a test Add a Matching question and a Match be dragging question to the test Set all answers to B in both questions save, ..., etc From the course startpage, select Backup and use 'Copy course' to transfer a full copy of this course to the target course MATCHINGCOPYCOURSE

Enter MATCHINGCOPYCOURSE and verify that the answers of the two matching questions are 'A' rather than the expected answer 'B'.

simbulu avatar Jan 22 '17 18:01 simbulu

From what my team here gathered it seems like once the copy is committed to the database the 'correct' field is actually not set to the new 'iid' of the new answer that was just copied over but to the old one causing the issue.

We also experienced a similar issue on the course exporting side of things.

Going to check the requirements of the project for pull requests fixing this early next week.

meuhland avatar Feb 03 '17 16:02 meuhland

I think this is already fixed.

jmontoyaa avatar Feb 28 '17 10:02 jmontoyaa

@simbulu could you test this case again on https://1.11.chamilo.org (refresh if it hangs, the server is very slow sometimes) and tell us if this is fixed?

ywarnier avatar Mar 22 '17 18:03 ywarnier

Considered fixed. Could not reproduce.

ywarnier avatar May 13 '17 23:05 ywarnier