-
Bug
-
Resolution: Fixed
-
Minor
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
This breaks the kind of code that automatically creates a Moodle coures, including blocks, by creating a $page object, and then using it to add blocks. E.g. this typical OU code.
// Add some blocks. |
$coursepage = new \moodle_page(); |
$coursepage->set_course($newcourse); |
$coursepage->set_pagetype('course-view-*'); |
$coursepage->set_pagelayout('course'); |
$coursepage->blocks->get_regions(); |
|
// News, Resources, Forums, Recommender and Handy links on the right. |
$coursepage->blocks->add_block('oucontacttutor', 'side-post', -7, false); |
$coursepage->blocks->add_block('news', 'side-post', 10, false); |
$coursepage->blocks->add_block('ourecent_activity', 'side-post', 20, false); |
$coursepage->blocks->add_block('oukeycoursedates', 'side-post', 43, false); |
Several new methods added during the theme Boost changes break this rule. I'll fix them.
- is a regression caused by
-
MDL-57232 After upgrade to 3.2, some blocks do not disappear when they should, and some do disappear when they should not
- Closed