Moodle

"Restrict modules" leads to courses with no modules allowed

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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).

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

I've fixed the logic in 1.9

Show
Martin Dougiamas added a comment - I've fixed the logic in 1.9

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: