From 0d2db0ee3cef60d1a3e79c7dc8162e97a66d43c7 Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Mon, 11 Jan 2010 00:06:58 +0000
Subject: [PATCH] #609122 by fabsor: Fix 404 errors when adding certain pages
 as shortcuts.

---
 modules/shortcut/shortcut.module | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module
index a8c24651bac2..ab78a459fc2c 100644
--- a/modules/shortcut/shortcut.module
+++ b/modules/shortcut/shortcut.module
@@ -263,10 +263,8 @@ function shortcut_set_save(&$shortcut_set) {
     $shortcut_set->set_name = shortcut_set_get_unique_name();
     $return = drupal_write_record('shortcut_set', $shortcut_set);
   }
-  // If links were provided for the set, save them, replacing any that were
-  // there before.
+  // If links were provided for the set, save them.
   if (isset($shortcut_set->links)) {
-    menu_delete_links($shortcut_set->set_name);
     foreach ($shortcut_set->links as &$link) {
       // Do not specifically associate these links with the shortcut module,
       // since other modules may make them editable via the menu system.
-- 
GitLab