Index: main/plugin-core/resources/js/Ametys/runtime/navhistory/HistoryDAO.i18n.js =================================================================== --- main/plugin-core/resources/js/Ametys/runtime/navhistory/HistoryDAO.i18n.js (revision 31757) +++ main/plugin-core/resources/js/Ametys/runtime/navhistory/HistoryDAO.i18n.js (working copy) @@ -111,12 +111,9 @@ */ addEntry: function (config) { - var existingItemIndex = this.getStore().find('id', config.id); - if (existingItemIndex != -1) - { - this.getStore().removeAt(existingItemIndex); - } + this.removeEntry(config.objectId); + this.getStore().suspendAutoSync(); this.getStore().add({ id: config.id, objectId: config.objectId || Ext.id(), @@ -129,6 +126,7 @@ type: config.type || '', action: config.action || Ext.emptyFn }); + this.getStore().resumeAutoSync(); }, /** @@ -140,7 +138,10 @@ var existingItemIndex = this.getStore().findExact('objectId', objectId); while (existingItemIndex != -1) { + this.getStore().suspendAutoSync(); this.getStore().removeAt(existingItemIndex); + this.getStore().resumeAutoSync(); + existingItemIndex = this.getStore().findExact('objectId', objectId); } },