From fca7e9ed6e1eaeda6c7c3cf3e5c4d3b68d8376af Mon Sep 17 00:00:00 2001 From: netusco Date: Fri, 9 May 2014 13:22:48 +0200 Subject: [PATCH] fixing removeMenuItem on menu service Object menus had an unknown property menuItem that corresponded to link property (see addMenuItem). --- public/modules/core/services/menus.client.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modules/core/services/menus.client.service.js b/public/modules/core/services/menus.client.service.js index 66d6bac912..15761996f6 100644 --- a/public/modules/core/services/menus.client.service.js +++ b/public/modules/core/services/menus.client.service.js @@ -99,7 +99,7 @@ angular.module('core').service('Menus', [ // Search for menu item to remove for (var itemIndex in this.menus[menuId].items) { - if (this.menus[menuId].items[itemIndex].menuItemURL === menuItemURL) { + if (this.menus[menuId].items[itemIndex].link === menuItemURL) { this.menus[menuId].items.splice(itemIndex, 1); } } @@ -111,4 +111,4 @@ angular.module('core').service('Menus', [ //Adding the topbar menu this.addMenu('topbar'); } -]); \ No newline at end of file +]);