1. As a teacher Create an Assignment using the Advanced uploading of files type. Be sure to set the "Enable send for marking button" option to "yes"
2. As a student upload a single file to the assignment activity.
3. As the student click the "Send for marking" button.
4. On the confirmation screen click the continue button

5. As the teacher browse to the assignment activity and click on the "View 1 submitted assignments" link
6. Click on the Grade link to view the student submission (in the status column of the table)
7. Click the "Revert to draft button"
8. Browse to the teachers activity report in the navigation block (My Courses -> Course name -> Participants -> Teacher Name -> Activity Reports -> All Logs)
9. Locate the "Assignment view submission" log entry (Should be the second entry from the top. and click the "Assignment view submission" link

This requires two users a teacher and a student
1. As a teacher Create an Assignment using the Advanced uploading of files type. Be sure to set the "Enable send for marking button" option to "yes"
2. As a student upload a single file to the assignment activity.
3. As the student click the "Send for marking" button.
4. On the confirmation screen click the continue button
5. As the teacher browse to the assignment activity and click on the "View 1 submitted assignments" link
6. Click on the Grade link to view the student submission (in the status column of the table)
7. Click the "Revert to draft button"
8. Browse to the teachers activity report in the navigation block (My Courses -> Course name -> Participants -> Teacher Name -> Activity Reports -> All Logs)
9. Locate the "Assignment view submission" log entry (Should be the second entry from the top. and click the "Assignment view submission" link
Verify that the student submission is shown

Description

Clicking the "revert to draft" button on the grading screen of the advanced upload assignment type results in a broken log entry.

Steps to reproduce:
This requires two users a teacher and a student

1. As a teacher Create an Assignment using the Advanced uploading of files type. Be sure to set the "Enable send for marking button" option to "yes"
2. As a student upload a single file to the assignment activity.
3. As the student click the "Send for marking" button.
4. On the confirmation screen click the continue button

5. As the teacher browse to the assignment activity and click on the "View 1 submitted assignments" link
6. Click on the Grade link to view the student submission (in the status column of the table)
7. Click the "Revert to draft button"
8. Browse to the teachers activity report in the navigation block (My Courses -> Course name -> Participants -> Teacher Name -> Activity Reports -> All Logs)
9. Locate the "Assignment view submission" log entry (Should be the second entry from the top. and click the "Assignment view submission" link

Expected result:
You will be brought to that students assignment submission

Eloy Lafuente (stronk7)
added a comment - 17/Oct/11 12:27 AM I've created MDL-29799 about how this (and other) log entries are handled by backup & restore. It seems we are missing some there.
In the other side, I've integrated this in 20, 21 and master (by cherry-picking). Thanks!