Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4915

Warning in case of different enrollment method for the same user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.4
    • Fix Version/s: None
    • Labels:
      None
    • Plugin Version:
      2.1.12 (2013100600)
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      When an user is enrolled to the course with different enrolled method (es. manual and self), the following message is displayed when the mod page is open.

      The problem is that Moodle allow multiple enrollment in a course for a single user and so we can't assume that the userid field (table role_assigments) is unique.

      ------------------

      Did you remember to make the first column something unique in your call to get_records? Duplicate value '##' found in column 'id'.

      line 1014 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
      line 178 of /blocks/autoattend/jbxl/jbxl_moodle_tools.php: call to mysqli_native_moodle_database->get_records_sql()
      line 200 of /blocks/autoattend/lib.php: call to jbxl_get_course_students()
      line 286 of /blocks/autoattend/updateAttendance.php: call to autoattend_count_attend_students()

      ------------------

      Thanks,
      Giorgio

        Attachments

          Activity

            People

            Assignee:
            iseki Fumikazu Iseki
            Reporter:
            kemmotar Giorgio Riva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: