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

Debugging on my home (assignment bug)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide

      Run unit tests for mod_assign on all databases (yes really).

      Create an assignment that allows multiple attempts
      As a student add a submission to the assignment
      As a teacher grade it and "Allow another attempt"
      As the same student, start a new attempt based on the previous one
      Save the new attempt
      Go to "my home" as a student
      Verify there is no debugging
      Go to "my home" as a teacher
      Verify there is no debugging

      Show
      Run unit tests for mod_assign on all databases (yes really). Create an assignment that allows multiple attempts As a student add a submission to the assignment As a teacher grade it and "Allow another attempt" As the same student, start a new attempt based on the previous one Save the new attempt Go to "my home" as a student Verify there is no debugging Go to "my home" as a teacher Verify there is no debugging
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46044-master

      Description

      I think this is related to an assignment with multiple attempts.

      Did you remember to make the first column something unique in your call to get_records? Duplicate value '13' found in column 'assignment'.
      line 791 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
      line 457 of /mod/assign/lib.php: call to pgsql_native_moodle_database->get_records_sql()
      line 43 of /blocks/course_overview/locallib.php: call to assign_print_overview()
      line 75 of /blocks/course_overview/block_course_overview.php: call to block_course_overview_get_overviews()
      line 294 of /blocks/moodleblock.class.php: call to block_course_overview->get_content()
      line 236 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 993 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1045 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 361 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
      line 45 of /theme/clean/layout/columns3.php: call to core_renderer->standard_head_html()
      line 877 of /lib/outputrenderers.php: call to include()
      line 807 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 167 of /my/index.php: call to core_renderer->header()
      Did you remember to make the first column something unique in your call to get_records? Duplicate value '13' found in column 'assignment'.
      line 791 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
      line 457 of /mod/assign/lib.php: call to pgsql_native_moodle_database->get_records_sql()
      line 43 of /blocks/course_overview/locallib.php: call to assign_print_overview()
      line 75 of /blocks/course_overview/block_course_overview.php: call to block_course_overview_get_overviews()
      line 294 of /blocks/moodleblock.class.php: call to block_course_overview->get_content()
      line 236 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 993 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1045 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 361 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
      line 45 of /theme/clean/layout/columns3.php: call to core_renderer->standard_head_html()
      line 877 of /lib/outputrenderers.php: call to include()
      line 807 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 167 of /my/index.php: call to core_renderer->header()

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14