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

Duplicate course function in course externallib won't allow values other than 0 and 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.13, 3.10.10, 3.11.6
    • Backup, Course
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      duplicate_course function found in course/externallib.php (https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/course/externallib.php#L1367) checks that a submitted value is either 0 or 1.

      However, backup option for enrolments (https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/course/externallib.php#L1351, https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/backup/backup.class.php#L151) can be 2.

      This causes problems while trying to duplicate a course with ENROL_ALWAYS option chosen.

            Unassigned Unassigned
            Haikoen Mikko Haiku
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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