mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-25031 ignore invalid block instances
pagetypepattern can not be null, so we ignore these until we find a way to fix them properly, sorry
This commit is contained in:
parent
f38325960e
commit
b871436148
1 changed files with 3 additions and 1 deletions
|
@ -1855,7 +1855,9 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
CASE WHEN subpagepattern IS NULL THEN ''
|
||||
ELSE subpagepattern END,
|
||||
0, defaultregion, defaultweight
|
||||
FROM {block_instances} WHERE visible = 0 AND pagetypepattern <> 'admin-*'");
|
||||
FROM {block_instances} WHERE visible = 0 AND pagetypepattern <> 'admin-*' AND pagetypepattern IS NOT NULL");
|
||||
// note: MDL-25031 all block instances should have a pagetype pattern, NULL is not allowed,
|
||||
// if we manage to find out how NULLs get there we should fix them before this step
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint(true, 2009050618);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue