-
Bug
-
Resolution: Fixed
-
Minor
-
3.8.0
-
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
Moodle App 3.8.1
Reported via SalesForce.
I took a look and the problem in glossary is that we first fetch the entry, and then we fetch the glossary. This means we don't have the contextInstanceId (glossary.coursemodule) when the entry is rendered, so filters aren't applied.
The format-text directive should re-format the contents if the contextLevel or the contextInstanceId have changed. Also, templates might want to use an ngIf to prevent the contents to render before all the data is ready (for performance reasons).
This is yet another issue caused because the elements in ng-contents (core-loading) are created before they're moved to the final destination, so we cannot force them to be created when the loaded variable is set to true.