blocks upgrade: MDL-20820 another blocks upgrade problem with sticky blocks

Even though the visible column is going to be dropped,
we need to set it here or the query at line 2087 will fail.

Huge thanks to Oleg Sychev who did all the debugging and testing for this fix.
This commit is contained in:
Tim Hunt
2009-11-11 17:01:12 +00:00
parent 64906d348c
commit 01de485dde
+1
View File
@@ -2043,6 +2043,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
$newblock->defaultregion = $newregions[$stickyblock->position];
$newblock->defaultweight = $stickyblock->weight;
$newblock->configdata = $stickyblock->configdata;
$newblock->visible = 1;
$DB->insert_record('block_instances', $newblock);
}