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

Completion Info reset state throws debugging error

XMLWordPrintable

    • MOODLE_22_STABLE
    • MOODLE_23_STABLE
    • MDL-32107-master
    • Hide

      Note: The actual bug that occurs, for some reason I don't understand I haven't been able to reproduce it without using the OU's custom dual pane module. However, I did test this fix against that and it works. These test instructions exercise the activity completion report, because that page uses the functions I changed - just to make sure I didn't break it.

      1. Set up a new course website. Ensure that completion is enabled.

      2. Enrol two test users as students in the course.

      3. Add a Label with text 'Ticky ticky' and manual completion enabled.

      4. While logged in as admin (or another user who is not enrolled on the course), tick the box.

      5. Log in as the first user who is enrolled on the course, and tick the box.

      6. Log back in as admin (or whoever) and view the 'Activity completion' report for the course.

      • The list of users should show both of the enrolled students (one of whom has ticked the box and the other hasn't).
      • It should not show the admin/unenrolled user.

      7. Using the 'First name' selector at the top, click to different values (one which does not match any user names; one which does) and ensure the result is as expected

      Show
      Note: The actual bug that occurs, for some reason I don't understand I haven't been able to reproduce it without using the OU's custom dual pane module. However, I did test this fix against that and it works. These test instructions exercise the activity completion report, because that page uses the functions I changed - just to make sure I didn't break it. 1. Set up a new course website. Ensure that completion is enabled. 2. Enrol two test users as students in the course. 3. Add a Label with text 'Ticky ticky' and manual completion enabled. 4. While logged in as admin (or another user who is not enrolled on the course), tick the box. 5. Log in as the first user who is enrolled on the course, and tick the box. 6. Log back in as admin (or whoever) and view the 'Activity completion' report for the course. The list of users should show both of the enrolled students (one of whom has ticked the box and the other hasn't). It should not show the admin/unenrolled user. 7. Using the 'First name' selector at the top, click to different values (one which does not match any user names; one which does) and ensure the result is as expected

      On one Moodle course, when updating a module I am seeing the following error -

      Did you remember to make the first column something unique in your call to get_records? Duplicate value '333182' found in column 'id'.
       
          line 716 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
          line 1094 of /lib/completionlib.php: call to pgsql_native_moodle_database->get_records_sql()
          line 786 of /lib/completionlib.php: call to completion_info->get_tracked_users()
          line 391 of /course/modedit.php: call to completion_info->reset_all_state()
       
      Did you remember to make the first column something unique in your call to get_records? Duplicate value '339734' found in column 'id'.
       
          line 716 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
          line 1094 of /lib/completionlib.php: call to pgsql_native_moodle_database->get_records_sql()
          line 786 of /lib/completionlib.php: call to completion_info->get_tracked_users()
          line 391 of /course/modedit.php: call to completion_info->reset_all_state()
       
      Did you remember to make the first column something unique in your call to get_records? Duplicate value '407824' found in column 'id'.
       
          line 716 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
          line 1094 of /lib/completionlib.php: call to pgsql_native_moodle_database->get_records_sql()
          line 786 of /lib/completionlib.php: call to completion_info->get_tracked_users()
          line 391 of /course/modedit.php: call to completion_info->reset_all_state()

      I have attempted reproducing and replicating the error but haven't succeeded.

            quen Sam Marshall
            anthonyforth Anthony Forth (Inactive)
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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