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

Course review - Quiz Attempt ID overwritten by User ID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6, 2.6.1
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
      git@github.com:skelty-unikent/moodle.git

      Description

      On the course review pages the quiz attempt ID is being overwritten by the attempt user ID.

      This goes back to 'quiz_get_recent_mod_activity' in quiz lib, where user fields are selected and the ID is not aliased, so the query returns two fields with the name 'id' and results in the attempt ID being overwritten by the User ID.

      Will submit example fix.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              skylarkelty Skylar Kelty
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: