? 306151-schema-based-install.patch
? 423690-menu-link-maintain.patch
? 457450-menu-objects-ext.patch
? 457450-menu-objects.patch
? test.patch
? sites/all/modules/admin_menu
? sites/all/modules/coder
? sites/all/modules/devel
? sites/all/modules/devel 2
? sites/all/modules/devel-7.x-1.x-dev.tar.gz
? sites/default/files
Index: includes/menu.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/menu.inc,v
retrieving revision 1.328
diff -u -p -r1.328 menu.inc
--- includes/menu.inc	10 Jun 2009 21:52:36 -0000	1.328
+++ includes/menu.inc	4 Jul 2009 16:34:35 -0000
@@ -2346,7 +2346,7 @@ function _menu_find_router_path($link_pa
  *   Title of the link to insert or new title to update the link to.
  *   Unused for delete.
  * @return
- *   The insert op returns the mlid of the new item. Others op return NULL.
+ *   The insert op returns the mlid of the new item. Other ops return NULL.
  */
 function menu_link_maintain($module, $op, $link_path, $link_title) {
   switch ($op) {
@@ -2359,21 +2359,11 @@ function menu_link_maintain($module, $op
       return menu_link_save($menu_link);
       break;
     case 'update':
-      db_update('menu_links')
-        ->fields(array('link_title' => $link_title))
-        ->condition('link_path', $link_path)
-        ->condition('customized', 0)
-        ->condition('module', $module)
-        ->execute();
-      $result = db_select('menu_links')
-        ->fields('menu_links', array('menu_name'))
-        ->condition('link_path', $link_path)
-        ->condition('customized', 0)
-        ->condition('module', $module)
-        ->groupBy('menu_name')
-        ->execute()->fetchCol();
-      foreach ($result as $menu_name) {
-        menu_cache_clear($menu_name);
+      $result = db_query("SELECT * FROM {menu_links} WHERE link_path = :link_path AND module = :module AND customized = 0", array(':link_path' => $link_path, ':module' => $module))->fetchAll(PDO::FETCH_ASSOC);
+      foreach ($result as $item) {
+        $item['link_title'] = $link_title;
+        $item['options'] = unserialize($item['options']);
+        menu_link_save($item);
       }
       break;
     case 'delete':
