Permalink
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...
1 parent 0dc5a53 commit f187622a0d26c4931a2079ce3b02e999db16f66b @timhunt timhunt committed Dec 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/blocklib.php
View
@@ -1285,7 +1285,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 {

0 comments on commit f187622

Please sign in to comment.