I cannot seem to allow users to retake a quiz which they have already passed.

Is this possible?

Thanks,
Ben

Comments

awong’s picture

Version: 5.x-1.1 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new632 bytes

You can set the Number of Takes in the quiz edit page. If you set unlimited in the number of takes, then the users can retake a quiz.
But even you set the number of takes, the users still cannot retake a quiz. Because in the code, It programmed when the user had passed the quiz and if the users don't have permission to create quizzes, it return false. I think this is a bug.
Here is the patch that fix this error. Please review it and see if this is the best way to fix it. Thanks

bjzimmeron’s picture

Title: Retake a passed quiz? » That works, thanks.

I appreciate the patch.

Ben

westwesterson’s picture

Title: That works, thanks. » Users cannot retake a passed quiz.

Please do not rename issues with undescriptive titles. If it works for you, leave a comment, or mark it RTBC.

westwesterson’s picture

Status: Needs review » Fixed

Committed

senpai’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new748 bytes

I'm still seeing the offending code in HEAD. I rolled this patch because the previous one missed the removal of the comment on the preceding line.

WestWesterson, would you try and commit this one?

Also, we should keep an eye out for this "maximum repeats" situation in the future. I have a feeling that removing this chunk of code, while necessary at the moment, is going to open up a UI bug in the very near future. Be on the lookout.

westwesterson’s picture

Status: Reviewed & tested by the community » Fixed

should be fixed this time, i don't know how i missed it the first time.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

  • Commit 29e1dbf on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by westwesterson:
    Users cannot retake a passed quiz. Issue #193840 by awong
    
    

  • Commit 29e1dbf on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by westwesterson:
    Users cannot retake a passed quiz. Issue #193840 by awong
    
    

  • Commit 29e1dbf on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by westwesterson:
    Users cannot retake a passed quiz. Issue #193840 by awong
    
    

  • Commit 29e1dbf on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by westwesterson:
    Users cannot retake a passed quiz. Issue #193840 by awong