mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-31616 block editing: show in subcontexts does not work on category pages.
Thanks to Ian David Wild for pointing to the proper fix.
This commit is contained in:
parent
dbee98b2e6
commit
6fc65ae5c3
1 changed files with 3 additions and 0 deletions
|
@ -1271,7 +1271,10 @@ class block_manager {
|
||||||
} else if ($data = $mform->get_data()) {
|
} else if ($data = $mform->get_data()) {
|
||||||
$bi = new stdClass;
|
$bi = new stdClass;
|
||||||
$bi->id = $block->instance->id;
|
$bi->id = $block->instance->id;
|
||||||
|
|
||||||
|
// This may get overwritten by the special case handling below.
|
||||||
$bi->pagetypepattern = $data->bui_pagetypepattern;
|
$bi->pagetypepattern = $data->bui_pagetypepattern;
|
||||||
|
$bi->showinsubcontexts = $data->bui_contexts;
|
||||||
if (empty($data->bui_subpagepattern) || $data->bui_subpagepattern == '%@NULL@%') {
|
if (empty($data->bui_subpagepattern) || $data->bui_subpagepattern == '%@NULL@%') {
|
||||||
$bi->subpagepattern = null;
|
$bi->subpagepattern = null;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue