Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51142

"Log In As" changes "Last modified (submission)"

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Test 1
      1. Create a course with at least three students and an instructor.
      2. Create an assignment and set it so it was due to be submitted by the students an hour ago.
      3. As the instructor, click on the assignment to view it.
      4. On the "View assignment" page, verify there is only a hyphen displayed in the "Last modified" cell of the "Submission status" table. (This is just below the "View/grade all submissions" link.)
      5. Click the "View/grade all submissions" link.
      6. On the "View/grade all submissions" page, the "Status" column for all students should show "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should display just a hyphen for each student.
      7. Click on Student A's name, then log in as Student A.
      8. While logged in as Student A, click on the assignment to view and do not submit to the assignment.
      9. Verify the "Last modified" cell of the "Submission status" table displays only a hyphen and not a day, date, and time.
      10. Log back in as the instructor and visit the "View/grade all submissions" page for the assignment.
      11. Ensure the displayed information for Student A in the "Status" column still shows "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should still show just a hyphen.
      12. Click on Student B's name and log in as Student B.
      13. While logged in as Student B, click on the assignment to view it and submit the assignment for grading.
      14. After submitting to the assignment, return to the "View assignment" page and verify the "Last modified" cell in the "Submission status" table now displays a day, date, and time.
      15. Log back in as the instructor and visit the "View/grade all submissions" page for the assignment.
      16. Ensure the displayed information in the "Status" column now shows "Submitted for grading" in black text on a green background, followed by "X hours Y minutes late" in black text on a rose-colored background. Also, the "Last modified (submission)" column should now show a day of the week, date, and time.
      17. While still logged in as the instructor, click on the pencil icon in the "Grade" column for Student C to access the grading page.
      18. On the grading page, click "Cancel" and do not give Student C a grade. This will return you to the "View/grade all submissions" page.
      19. On the "View/grade all submissions" page, check that the "Status" column for Student C displays "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should display only a hyphen.
      Test 2
      1. Create a Team assignment and repeat the tests for "Student A"
      Show
      Test 1 Create a course with at least three students and an instructor. Create an assignment and set it so it was due to be submitted by the students an hour ago. As the instructor, click on the assignment to view it. On the "View assignment" page, verify there is only a hyphen displayed in the "Last modified" cell of the "Submission status" table. (This is just below the "View/grade all submissions" link.) Click the "View/grade all submissions" link. On the "View/grade all submissions" page, the "Status" column for all students should show "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should display just a hyphen for each student. Click on Student A's name, then log in as Student A. While logged in as Student A, click on the assignment to view and do not submit to the assignment. Verify the "Last modified" cell of the "Submission status" table displays only a hyphen and not a day, date, and time. Log back in as the instructor and visit the "View/grade all submissions" page for the assignment. Ensure the displayed information for Student A in the "Status" column still shows "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should still show just a hyphen. Click on Student B's name and log in as Student B. While logged in as Student B, click on the assignment to view it and submit the assignment for grading. After submitting to the assignment, return to the "View assignment" page and verify the "Last modified" cell in the "Submission status" table now displays a day, date, and time. Log back in as the instructor and visit the "View/grade all submissions" page for the assignment. Ensure the displayed information in the "Status" column now shows "Submitted for grading" in black text on a green background, followed by "X hours Y minutes late" in black text on a rose-colored background. Also, the "Last modified (submission)" column should now show a day of the week, date, and time. While still logged in as the instructor, click on the pencil icon in the "Grade" column for Student C to access the grading page. On the grading page, click "Cancel" and do not give Student C a grade. This will return you to the "View/grade all submissions" page. On the "View/grade all submissions" page, check that the "Status" column for Student C displays "No submission" in black text on a grey background, followed by "Assignment is overdue by: X hours Y minutes" in red text on a white background. Also, the "Last modified (submission)" column should display only a hyphen. Test 2 Create a Team assignment and repeat the tests for "Student A"
    • Workaround:
      Hide

      There is no workaround.

      Show
      There is no workaround.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51142-master

      Description

      What was expected
      The assignment grading shows accurate user information while participating of the activity, like "Last modified (submission)" date.

      What is happening
      When an user "Log in as" (moodle/user:loginas) a gradable role (student) and view the assignment activity (event: The status of the submission has been viewed), it modifies the "Last modified (submission)" date for that user in assignment grading.

      Steps to Reproduce:
      1) Create a course and add a assignment activity
      2) Create users and enroll them as student in that course
      3) View "Course > Topic > Assignment > Grading"
      4) As a user with (moodle/user:loginas) capability as default teacher or admin
      4.a) View a student profile and "Log in as" in its "Profile settings for [USER]"
      4.b) View the assignment activity at step 1)
      4.c) Logout
      5) See again "Course> Topic > Assignment > Grading"
      6) "Last modified (submission)" field for that user has a incorrect information.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                10 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/May/16