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
@@ -1693,11 +1693,13 @@ function _menu_navigation_links_rebuild($menu) {
array_multisort($sort,SORT_NUMERIC,$menu_links);
foreach($menu_linksas$item){
$existing_item=db_fetch_array(db_query("SELECT mlid, menu_name, plid, customized FROM {menu_links} WHERE link_path = '%s' AND module = '%s'",$item['link_path'],'system'));
$existing_item=db_fetch_array(db_query("SELECT mlid, menu_name, plid, customized, has_children, updated FROM {menu_links} WHERE link_path = '%s' AND module = '%s'",$item['link_path'],'system'));
@@ -1719,7 +1721,7 @@ function _menu_navigation_links_rebuild($menu) {
}
}
// Find any items where their router path does not exist any more.
$result=db_query('SELECT * FROM {menu_links} WHERE router_path NOT IN ('.$placeholders.') AND external = 0 AND updated = 0 AND customized = 0 ORDER BY depth DESC',array_keys($menu));
$result=db_query("SELECT * FROM {menu_links} WHERE router_path NOT IN ($placeholders) AND external = 0 AND updated = 0 AND customized = 0 ORDER BY depth DESC",$paths);
// Remove all such items. Starting from those with the greatest depth will
// minimize the amount of re-parenting done by menu_link_delete().