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

Course autocreation doesn't work in enrol/database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1, 1.8
    • Fix Version/s: 1.7.2, 1.8, 1.9
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Current code doesn't auto-create courses in enrol/database unless you explicitly use enrol_database_sync.php script. It seems the code to auto-create courses is just present in sync_enrolments(). setup_enrolments() just tests if the course exists or not, and if it doesn't it simply skips it instead of creating it.

      I'll attach a patch for this in a few hours (it's a bit late here

      Saludos. Iñaki.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lazyfish Yu Zhang
                Reporter:
                iarenaza Iñaki Arenaza
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, 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:
                  30/Mar/07