From f187622a0d26c4931a2079ce3b02e999db16f66b Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Sun, 16 Dec 2012 22:39:07 +0000 Subject: [PATCH] MDL-31616 block editing: show in subcontexts does not work on category pages. Thanks to Ian David Wild for pointing to the proper fix. --- lib/blocklib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/blocklib.php b/lib/blocklib.php index cbea8ad4f97..869d75b50fe 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -1285,7 +1285,10 @@ class block_manager { } 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 { -- 2.43.0