Moodle

Switch role to student, take quiz, can't delete attempt

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.2
  • Component/s: Quiz
  • Labels:
    None

Description

When a teacher uses the "Switch role to" drop down, switches to student, and previews a quiz, the attempt is recorded, but cannot be deleted.

The teacher can no longer edit the quiz after switching their role back to teacher. The attempt cannot be deleted.

This can be seen on demo.moodle.org running Moodle Version 1.9.1+ (Build: 20080602)

Activity

Hide
Mary Parke added a comment -
  • In 1.9, an instructor may "switch role to" any role permissions beneath theirs, such as "student" from their main course page. If they switch to student role view and then go to say a quiz and attempt the quiz AND submit their results for the quiz, well, an attempt is logged for that quiz. The problem is that now the instructor is locked out of editing the quiz once they return to their "normal view" (as an instructor). There is no check box next to the attempt to delete the attempt.
  • How to solve this: The instructor can go to their course administration block and click on Assign Roles and then assign theirself to the "student" role. Then, go back to the quiz. They'll see their initial attempt at the quiz and can now delete it. Then they go back to "Assign Roles" and remove themself from the student role. It's the only way to remove the attempt they made as a "student". (this "workaround" was solved by Chris at MoodleRooms).

We really need this fixed so this is not standard behavior. Every instructor I know of wants to play around with the "switch role" to student view and test out their activities and quizzes and this fix is not very end user friendly.

Show
Mary Parke added a comment -
  • In 1.9, an instructor may "switch role to" any role permissions beneath theirs, such as "student" from their main course page. If they switch to student role view and then go to say a quiz and attempt the quiz AND submit their results for the quiz, well, an attempt is logged for that quiz. The problem is that now the instructor is locked out of editing the quiz once they return to their "normal view" (as an instructor). There is no check box next to the attempt to delete the attempt.
  • How to solve this: The instructor can go to their course administration block and click on Assign Roles and then assign theirself to the "student" role. Then, go back to the quiz. They'll see their initial attempt at the quiz and can now delete it. Then they go back to "Assign Roles" and remove themself from the student role. It's the only way to remove the attempt they made as a "student". (this "workaround" was solved by Chris at MoodleRooms).
We really need this fixed so this is not standard behavior. Every instructor I know of wants to play around with the "switch role" to student view and test out their activities and quizzes and this fix is not very end user friendly.
Hide
Tim Hunt added a comment -

I don't think this is a bug.

On the results page, there is an option Preferences just for this page -> Show / download which defaults to 'Students' with attempts only.

If you change that to 'All attempts' then you can see and delete the attempt that the admin did after switching roles.

So, surely everything is working as it should be.

Show
Tim Hunt added a comment - I don't think this is a bug. On the results page, there is an option Preferences just for this page -> Show / download which defaults to 'Students' with attempts only. If you change that to 'All attempts' then you can see and delete the attempt that the admin did after switching roles. So, surely everything is working as it should be.
Hide
Mary Parke added a comment -

Hi Tim!

I just discovered this option for preferences as you mention above. Yes, this does solve the problem.
It's not very clear, however, for our instructors - meaning, arriving at this solution is NOT intuitive. If there were a way to inform instructors of this behavior when they click on the "switch to student role" or when they click on "save and submit attempt" (when switched to student role) or something along these lines, that would certainly help. It took three experienced Moodlers a few hours worth of work to find this preferences setting.

I would switch this from BUG to a USABILITY issue - but I don't see this in the tracker as an option....

Many thanks for replying to this issue!

  • Mary
Show
Mary Parke added a comment - Hi Tim! I just discovered this option for preferences as you mention above. Yes, this does solve the problem. It's not very clear, however, for our instructors - meaning, arriving at this solution is NOT intuitive. If there were a way to inform instructors of this behavior when they click on the "switch to student role" or when they click on "save and submit attempt" (when switched to student role) or something along these lines, that would certainly help. It took three experienced Moodlers a few hours worth of work to find this preferences setting. I would switch this from BUG to a USABILITY issue - but I don't see this in the tracker as an option.... Many thanks for replying to this issue!
  • Mary
Hide
Mary Parke added a comment -

Here's a quick video on this "problem" and solution for users: http://www.screencast.com/t/81cwPeldkK6
or: <a href="http://www.screencast.com/t/81cwPeldkK6">Moodle 1.9.1 - Instructor in Student View - Remove Quiz Attempt</a>

Show
Mary Parke added a comment - Here's a quick video on this "problem" and solution for users: http://www.screencast.com/t/81cwPeldkK6 or: <a href="http://www.screencast.com/t/81cwPeldkK6">Moodle 1.9.1 - Instructor in Student View - Remove Quiz Attempt</a>
Hide
Tim Hunt added a comment -

Jamie, can you consider this usability problem in your work on the quiz reports. Maybe just make 'all attempts' the default.

Show
Tim Hunt added a comment - Jamie, can you consider this usability problem in your work on the quiz reports. Maybe just make 'all attempts' the default.
Hide
Jamie Pratt added a comment -

Switched the default mode of the overview report to show all attempts, whether for an enrolled student or not, in 1.9 and HEAD.

Show
Jamie Pratt added a comment - Switched the default mode of the overview report to show all attempts, whether for an enrolled student or not, in 1.9 and HEAD.
Hide
Nicolas Connault added a comment -

Tested and verified. Closing.

Show
Nicolas Connault added a comment - Tested and verified. Closing.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: