Merge branch 'MDL-84073-405' of https://github.com/sh-csg/moodle into MOODLE_405_STABLE

This commit is contained in:
Huong Nguyen
2025-05-15 11:57:33 +07:00
+1 -1
View File
@@ -95,7 +95,7 @@ class fetch_addable_blocks extends external_api {
}
// Firstly, we need to load all currently existing page blocks to later determine which blocks are addable.
$page->blocks->load_blocks(false);
$page->blocks->load_blocks(true);
$page->blocks->create_all_block_instances();
$addableblocks = $page->blocks->get_addable_blocks();