Can not delete attempts

Can not delete attempts

deur สราญ ตันศิรินาถกุล -
Getal antwoorde: 15

In the last version of Moodle (2.1.1), in quiz can not delete attempts of student in report overview.

Gemiddeld van beoordelings: -
In antwoord op สราญ ตันศิรินาถกุล

Re: Can not delete attempts

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

I don't recall any recent changes in that area of the code.

And I just tested this and it works for me.

Gemiddeld van beoordelings: -
In antwoord op Tim Hunt

ตอบ: Re: Can not delete attempts

deur สราญ ตันศิรินาถกุล -

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.)

 

Aanhangsel select_attempts.jpg
Gemiddeld van beoordelings: -
In antwoord op สราญ ตันศิรินาถกุล

Re: ตอบ: Re: Can not delete attempts

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

Ah yes. I think this bug is to do with separate groups mode, and is already reported to the bug database. I must find time to fix it.

Gemiddeld van beoordelings: -
In antwoord op Tim Hunt

ตอบ: Re: ตอบ: Re: Can not delete attempts

deur สราญ ตันศิรินาถกุล -

Thank you very much, Sir

Gemiddeld van beoordelings: -
In antwoord op สราญ ตันศิรินาถกุล

Re: ตอบ: Re: ตอบ: Re: Can not delete attempts

deur Orestes Mas -
Prentjie van Translators
Meanwhile, you can delete attempts if you don't filter by any particular group.
Gemiddeld van beoordelings: -
In antwoord op Orestes Mas

Re: ตอบ: Re: ตอบ: Re: Can not delete attempts

deur Adolfo Castillo -

i can delete attempts if i don`t filter by any particular group, but what happen when the teachers want to delete the attempts in any group, how can i solve this situation thank you by your answers, sorry by my english.

Gemiddeld van beoordelings: -
In antwoord op Adolfo Castillo

Re: ตอบ: Re: ตอบ: Re: Can not delete attempts

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

I fear you have to wait until the bug is fixed.

Gemiddeld van beoordelings: -
In antwoord op Tim Hunt

Hierdie forumplasing is verwyder

Die inhoud van hierdie forumplasing is verwyder en is nie meer toeganklik nie.
In antwoord op Skrap gebruiker

Hierdie forumplasing is verwyder

Die inhoud van hierdie forumplasing is verwyder en is nie meer toeganklik nie.
In antwoord op Skrap gebruiker

Re: ตอบ: Re: Can not delete attempts

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

The issue is MDL-27314, I think.

 

Under what circumstances does Moodle call quiz_calculate_best_grade with an empty array?

Gemiddeld van beoordelings: -
In antwoord op Tim Hunt

Hierdie forumplasing is verwyder

Die inhoud van hierdie forumplasing is verwyder en is nie meer toeganklik nie.
In antwoord op Skrap gebruiker

Re: ตอบ: Re: Can not delete attempts

deur Chris Kenniburg -
Prentjie van Particularly helpful Moodlers Prentjie van Plugin developers

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?

Gemiddeld van beoordelings: -
In antwoord op Chris Kenniburg

Re: ตอบ: Re: Can not delete attempts

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

If you look at the bug report, you will see

  • Status: Open Open
  • Resolution: Unresolved

So, no, not fixed yet.

Gemiddeld van beoordelings: -
In antwoord op สราญ ตันศิรินาถกุล

Re: Can not delete attempts

deur Igor Sazonov -

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 =)

Gemiddeld van beoordelings:Useful (1)