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

course default settings are not propagated when admin approves course requests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6, 2.0
    • Component/s: Course
    • Labels:
      None
    • Environment:
      any
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When an admin approves a requested course the default values set in Administration/Courses/Defaults courses settings such as format, number of sections, hidden sections ... are not propagated to the new course...

      This simply requires adding the following in course/pending.php near line 100, just before the insert_record statment.

      + // PP ajout defaut de la conf globale
      + $courseconfig = get_config('moodlecourse');
      + $course->format=$courseconfig->format;
      + $course->numsections=$courseconfig->numsections;
      + $course->hiddensections=$courseconfig->hiddensections;
      + $course->newsitems=$courseconfig->newsitems;
      + $course->showgrades= $courseconfig->showgrades;
      + $course->showreports=$courseconfig->showreports;
      + $course->maxbytes=$courseconfig->maxbytes;
      + // end PP
      +

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Oct/09