-
Bug
-
Resolution: Fixed
-
Minor
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-45550-master -
The situation when a availability plugin which is already in use, is disabled, is not properly handled by core.
There are two aspects to this,
1) The implementation of the condition - It seems a decision was made at some point to silently ignore these restrictions.
We have the following comment in tree::construct()
* 2. Data that meets the structure but cannot be implemented (e.g.
|
* reference to missing plugin or to module that doesn't exist) is
|
* either silently discarded (if $lax is true) or causes a
|
* coding_exception (if $lax is false).
|
2) The edit module UI.
In the UI the condition appears as "Missing restriction plugin", however when you try to save the activity it comes up with an error "[[item_unknowntype]]"