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

"Restrict modules" leads to courses with no modules allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      As per MDLSITE-361, it's possible to get into a strange situation when:

      • restrictmodulesfor is enabled for some courses and
      • some defaultallowedmodules are defined

      In this case, when editing the settings of a course, the $course->restrict flag is switched ON automatically, even though an ordinary teacher can't see the setting in the form. Unfortunately, the default modules aren't set as well, so the course gets into a state where there's nothing in the add menus for the course (all modules are banned).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              dougiamas Martin Dougiamas
              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:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08