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

Error accessing "Activity completion" report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.11.10
    • Activity completion
    • None
    • MOODLE_311_STABLE

      When accessing the "Activity completion" report, a DB error is displayed.

      It seems because the SQL query that is generated repeats the "u.idnumber" field.

      It might happen when the user's idnumber field is defined at the environment level in showuseridentity.

      It has worked for us to change the line:

      File : ./lib/completionlib.php
      Function: get_tracked_users()

      Line :
      $sql = 'SELECT u.id, u.idnumber ' . $all usernames;
      by
      $sql = 'SELECT u.id ' . $all usernames;

       

      Note: DB is Oracle.

        1. completion_1.png
          completion_1.png
          144 kB
        2. completion_2.png
          completion_2.png
          59 kB
        3. completion_3.png
          completion_3.png
          40 kB

            Unassigned Unassigned
            jaume77 Jaume Rocarias
            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.