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

"Assessing example submission" throws db error when viewing in student role

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.7, 2.1.4
    • 2.1.1
    • Workshop
    • Centos 5.x x86_64, Postgresql 8.4, php 5.3.x, apache 2.2
    • PostgreSQL
    • MOODLE_21_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MDL-30271-switch-role-workshop
    • Hide
      1. Prepare a course with two editing teachers - say Teacher A and Teacher B
      2. Login as the Teacher A and create a new Workshop activity
      3. In the Workshop settings, enable "Use examples" feature
      4. Define a simple assessment form for the workshop, add example submission and provide the reference assessment for the submission
      5. Switch the workshop to the Submission phase
      6. Still logged in as Teacher A, switch role to the Student
      7. TEST: Try to assess the example submission. Make sure a message displays saying that you can't assess the example because you are the one who provided the example assessment.
      8. Return to normal role and log in as the second Teacher B
      9. Logged in as Teacher B, switch role to the Student again
      10. TEST: Try to assess the example submission. Make sure that you can fill the assessment form, save it and then the normal comparison between the reference assessment and your assessment appears.
      Show
      Prepare a course with two editing teachers - say Teacher A and Teacher B Login as the Teacher A and create a new Workshop activity In the Workshop settings, enable "Use examples" feature Define a simple assessment form for the workshop, add example submission and provide the reference assessment for the submission Switch the workshop to the Submission phase Still logged in as Teacher A, switch role to the Student TEST: Try to assess the example submission. Make sure a message displays saying that you can't assess the example because you are the one who provided the example assessment. Return to normal role and log in as the second Teacher B Logged in as Teacher B, switch role to the Student again TEST: Try to assess the example submission. Make sure that you can fill the assessment form, save it and then the normal comparison between the reference assessment and your assessment appears.

      When you (teacher/admin) switch to the student role and then click on the Assess button to see the "Example submissions to assess" you get the "Can not find data record in database table workshop_assessments." error. (see attachment)

      Replication steps:

      1. Create a new workshop activity
      2. Set it up until you reach the Submission phase
      3. As teacher/admin, switch to the student role
      4. Click on the Assess button to see the "Example submissions to assess"

      You get the "Can not find data record in database table workshop_assessments." error. (see attachment)

            mudrd8mz David Mudrák (@mudrd8mz)
            edinamonsoon edinamonsoon (Inactive)
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.