From 05d1f6cb9d7a29fcb0ee4c4df2e6e6727bbc2ac0 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 1 Nov 2012 12:14:18 +0800 Subject: [PATCH] MDL-36238 Blocks: Logs page close session write, so editing is set before --- report/log/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/report/log/index.php b/report/log/index.php index a672f2af990..ab23633e886 100644 --- a/report/log/index.php +++ b/report/log/index.php @@ -121,6 +121,11 @@ $strlogs = get_string('logs'); $stradministration = get_string('administration'); $strreports = get_string('reports'); +// Before we close session, make sure we have editing information in session. +$adminediting = optional_param('adminedit', -1, PARAM_BOOL); +if ($PAGE->user_allowed_editing() && $adminediting != -1) { + $USER->editing = $adminediting; +} session_get_instance()->write_close(); if (!empty($chooselog)) {