Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36238 Blocks: Logs page close session write, so editing is set be…

…fore
  • Loading branch information...
commit 05d1f6cb9d7a29fcb0ee4c4df2e6e6727bbc2ac0 1 parent 9819795
@rajeshtaneja rajeshtaneja authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 report/log/index.php
View
5 report/log/index.php
@@ -121,6 +121,11 @@
$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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.