Skip to content
Snippets Groups Projects
Commit e4325eb0 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #22215 by Richard Archer: fixed glitch in the upgrade path for primary/secondary links.

parent 54e13b5f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1071,7 +1071,9 @@ function update_151() {
$mid = db_next_id('{menu}_mid');
$ret[] = update_sql("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) " .
"VALUES ($mid, {$menus[$loop]['pid']}, '$link_path', '{$links['text'][$i]}', '{$links['description'][$i]}', 0, 118)");
"VALUES ($mid, {$menus[$loop]['pid']}, '" . db_escape_string($link_path) .
"', '" . db_escape_string($links['text'][$i]) .
"', '" . db_escape_string($links['description'][$i]) . "', 0, 118)");
}
}
// delete Secondary links if not populated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment