Commit e9393b22 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1817783: Lockblocks prevent a user from being deleted"

parents 1b416737 d73d68fc
......@@ -994,6 +994,8 @@ class View {
//remove lock blocks, if they exist for this page
set_field('view', 'lockblocks', 0, 'id', $this->id, 'lockblocks', 1);
if ($blockinstanceids = get_column('block_instance', 'id', 'view', $this->id)) {
require_once(get_config('docroot') . 'blocktype/lib.php');
foreach ($blockinstanceids as $id) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment