Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-50310 glossary: Fix restore of random glossary entry block
When restoring the random glossary entry block, we need to check that the associated glossary has also been included in the backup and is being restored. If not, we must invalidate the block configuration. Before this patch, the block configuration was not invalidated. Additionally, as a result of MDL-20131, the block configuration also contains the course id of the associated glossary (which by the way does not seem to be a wise choice, but I may be missing something). So we need to remap this course id as well to avoid mismatch.
- Loading branch information