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

LDAP enrolment course auto-creation doesn't work at user login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5, 1.9.1
    • Fix Version/s: 1.8.6, 1.9.2
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      We use $this->create_course() to create the non-existent course, which returns the 'id' of the new record. And then we call get_record() using that value to match the field specified in $this->enrol_localcoursefield, which is wrong. We need to match the value to the 'id' field, obviously.

      Sauldos. Iñaki.

        Attachments

          Activity

            People

            • Assignee:
              iarenaza Iñaki Arenaza
              Reporter:
              iarenaza Iñaki Arenaza
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/08