Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31616 block editing: show in subcontexts does not work on categor…

…y pages.

Thanks to Ian David Wild for pointing to the proper fix.
  • Loading branch information...
commit 6fc65ae5c324250e88bb7132a8b635d70eb55f73 1 parent dbee98b
@timhunt timhunt authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/blocklib.php
View
3  lib/blocklib.php
@@ -1271,7 +1271,10 @@ public function process_url_edit() {
} else if ($data = $mform->get_data()) {
$bi = new stdClass;
$bi->id = $block->instance->id;
+
+ // This may get overwritten by the special case handling below.
$bi->pagetypepattern = $data->bui_pagetypepattern;
+ $bi->showinsubcontexts = $data->bui_contexts;
if (empty($data->bui_subpagepattern) || $data->bui_subpagepattern == '%@NULL@%') {
$bi->subpagepattern = null;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.