diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index a4109a8c2751960ef2ac345a0160a767fa6b7c6d..546b036805c179a471f8e1705319b11d7d1ea724 100644 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -1283,12 +1283,7 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ): del(self._getPersistentContainer(user_id)[selection_name]) def _deleteGlobalSelectionFromContainer(self, selection_name): - id_list = [] - if self.isMemcachedUsed(): - for k in self._getMemcachedContainer().keys(): - if k.split('-')[1] == selection_name: - del(self._getMemcachedContainer()[k]) - else: + if not self.isMemcachedUsed(): if getattr(aq_base(self), 'selection_data', None) is not None: for user_id in self.selection_data.keys(): mapping = self._getPersistentContainer(user_id)