Copy course changes correct answers in Matching questions in quizzes
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'.
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.
I think this is already fixed.
@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?
Considered fixed. Could not reproduce.