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 38d2c76 commit 70688fd72ee88edaf77a1455a36641afaa51c569 @timhunt timhunt committed with stronk7 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 70688fd

Please sign in to comment.