From 054bcf69f6047f6fb8fe6feeb7ee452b4eda9ecc Mon Sep 17 00:00:00 2001 From: Matt Meisberger Date: Sun, 5 Aug 2012 15:06:04 -0500 Subject: [PATCH] MDL-34742 - adding ability to move blocks into empty column --- lib/blocklib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/blocklib.php b/lib/blocklib.php index 1c7097e9246..b41b67c7fc5 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -457,6 +457,12 @@ class block_manager { if (!$this->page->theme->enable_dock) { return false; } + + // Do not dock the region when the user attemps to move a block. + if ($this->movingblock) { + return false; + } + $this->check_is_loaded(); $this->ensure_content_created($region, $output); foreach($this->visibleblockcontent[$region] as $instance) {