In the last version of Moodle (2.1.1), in quiz can not delete attempts of student in report overview.
It really not works for me.
In my course I seperate group.
When student attempts the quiz more than one attempt and I want to delete the attempts which a few points, I click to select that attempts then click the "Delete selected attempts" command button. It no have dialog box to confirm delete selected attempts, and the page refresh to the first page of report overview.
The selected attempts was not remove.
Please explain why this happens.
Thank you very much.
Saran Tansirinahtkool from Chiangmai Thailand (Land of Smiles.)
本讨论区帖子已移除
本讨论区帖子已移除
本讨论区帖子已移除
Is this issue resolved? I am having this issue as well. I have Moodle 2.1.1+ (Build: 20110803) .
My course has several groups. When selecting a group and trying to only delete those group attempts it refreshes the page as if it was working but the attempts are still there.
I was wondering if it has been fixed in the most recent build of 2.1.1?
Hi! The bug is in Moodle quiz mod. I've fixed it:
file /mod/quiz/report/attemptsreport.php
function delete_selected_attempts
($allowed && !array_key_exists($attempt->userid, $allowed))
replace to:
($allowed && !in_array($attempt->userid, $allowed))
so replace array_key_exists to in_array
hope I've help you =)