Skip to content

Commit

Permalink
Unlock session when viewing reports moodleou#113
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood authored and timhunt committed May 31, 2022
1 parent 658cc04 commit 55b1bcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

define('NO_OUTPUT_BUFFERING', true);

require_once(dirname(__FILE__) . '/../../config.php');
require_once(dirname(__FILE__) . '/locallib.php');
require_once(dirname(__FILE__) . '/view_form.php');
Expand Down Expand Up @@ -59,6 +61,9 @@

report_customsql_log_view($id);

// We don't want slow reports blocking the session in other tabs.
\core\session\manager::write_close();

if ($report->runable == 'manual') {

// Allow query parameters to be entered.
Expand Down

0 comments on commit 55b1bcd

Please sign in to comment.