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

Multiple attempts at a group submission produces a duplicate value message.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      On the "View all submissions" page of mod_assign, if there are multiple submission attempts made by a group, there will be a debugging message about duplicate values.

      Did you remember to make the first column something unique in your call to get_records? Duplicate value '5' found in column 'id'.
      line 802 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
      line 1609 of /lib/tablelib.php: call to pgsql_native_moodle_database->get_records_sql()
      line 1503 of /mod/assign/gradingtable.php: call to table_sql->query_db()
      line 4139 of /mod/assign/locallib.php: call to assign_grading_table->get_column_data()
      line 4209 of /mod/assign/locallib.php: call to assign->view_grading_table()
      line 582 of /mod/assign/locallib.php: call to assign->view_grading_page()
      line 55 of /mod/assign/view.php: call to assign->view()
       

      I think that the sql query that is used to generate the table could also be causing the wrong grade (from a previous attempt) to be displayed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abgreeve Adrian Greeve
                Participants:
                Component watchers:
                Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: