Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-26618 Moving sticky blocks on other pages does not work in Oracle.

This was due to some missing $DB->sql_empty() in a query affecting the
block_positions table.
  • Loading branch information...
commit b8369f5e9fdb6b57e0176980dcfa3621f0110647 1 parent 020f0ff
@timhunt timhunt authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/blocklib.php
View
4 lib/blocklib.php
@@ -550,6 +550,10 @@ public function load_blocks($includeinvisible = null) {
'contextid2' => $context->id,
'pagetype' => $this->page->pagetype,
);
+ if ($this->page->subpage === '') {
+ $params['subpage1'] = $DB->sql_empty();
+ $params['subpage2'] = $DB->sql_empty();
+ }
$sql = "SELECT
bi.id,
bp.id AS blockpositionid,
Please sign in to comment.
Something went wrong with that request. Please try again.