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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.3
    • Assignment
    • MOODLE_33_STABLE

      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.

            Unassigned Unassigned
            abgreeve Adrian Greeve
            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.